Re: [MBS] Debugging CURLSMBS calls

2020-01-23 Thread Maximilian Tyrtania
Ah, thanks. Setting OptionCustomRequest after OptionPostFields made all the 
difference.

Best,

Max

> Am 22.01.2020 um 16:11 schrieb Christian Schmitz 
> :
> 
> 
> 
>> Am 21.01.2020 um 09:03 schrieb Maximilian Tyrtania :
>> 
>> Let me rephrase my question: How would I have to set up my call so that it 
>> mimicks the successful terminal call
>> 
>> curl --request PATCH \
> 
> -> OptionCustomRequest
> 
>> | =>   --url https://api.zoom.us/v2/users/someUserID \
> 
> -> OptionURL
> 
>> | =>   --header 'authorization: Bearer MyJWT...' \
>> | =>   --header 'content-type: application/json' \
> 
> -> SetOptionHTTPHeader with both in an array.
> 
>> | =>   --data 
>> '{"first_name":"Test","last_name":"Coach","type":"1","job_title":"string","company":"SomeCompany","location":"Berlin"}'
> 
> -> OptionPostFields
> 
> 
> You may need to set OptionPostFields first and then OptionCustomRequest as 
> setting post fields may switch to POST request.
> 
> Sincerely
> Christian
> 
> -- 
> Read our blog about news on our plugins:
> 
> http://www.mbsplugins.de/
> 
> 
> 
> ___
> mbsplugins@monkeybreadsoftware.info mailing list
> %(list_address)s
> https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Maximilian Tyrtania
http://www.contactking.de


___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Debugging CURLSMBS calls

2020-01-21 Thread Maximilian Tyrtania
Let me rephrase my question: How would I have to set up my call so that it 
mimicks the successful terminal call

curl --request PATCH \
| =>   --url https://api.zoom.us/v2/users/someUserID \
| =>   --header 'authorization: Bearer MyJWT...' \
| =>   --header 'content-type: application/json' \
| =>   --data 
'{"first_name":"Test","last_name":"Coach","type":"1","job_title":"string","company":"SomeCompany","location":"Berlin"}'

?

Thanks,

Max


___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Debugging CURLSMBS calls

2020-01-20 Thread Maximilian Tyrtania
I 'm creating a Zoom-API-Wrapper class and I'm using the CURLSMBS class for the 
actual call and it's coming along quite well. There is one call however I can't 
seem to get to work (I always get error 405 method not allowed):
This is the contructor of my custom CURLSMBS-class. I don't believe there is 
anything wrong with it as all other calls (create /delete User) succeed.

Public Sub constructor()
  
  Me.OptionVerbose = DebugBuild
  Me.CollectOutputData = True
  Me.OptionUserAgent = "JWT-Zoom-Client"
  Me.OptionFollowLocation = True
  Me.OptionMaxRedirs = 3
  
  Dim headerArray() As String
  headerArray.Append "content-type: application/json;charset=UTF-8"
  headerArray.Append "Accept: */*"
  headerArray.Append "Accept-Encoding: gzip, deflate"
  headerArray.Append "Cache-Control: no-cache"
  headerArray.Append "Connection: keep-alive"
  headerArray.Append "Authorization: Bearer "+ZoomStuff.JWT
  headerArray.Append "Host: api.zoom.us"
  
  Me.SetOptionHTTPHeader headerArray
End Sub

Here is the actual call:

Public Function updateUserAccountTypeForCoach(theUser as User, accountType as 
Integer) as string
  Dim result As String
  //see: 
https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userupdate
  
  Me.OptionURL = "https://api.zoom.us/v2/users/"+theuser.zoom_id
  Me.OptionCustomRequest = "PATCH" //this might be the culprit as the error 
says Allow: GET, POST
  
  Var zoomUser As New JSONItem
  Var userInfo As New JSONItem
  userInfo.value("email")=theUser.email
  userInfo.value("type")=accountType
  userInfo.value("first_name")=theUser.firstname
  userInfo.value("last_name")=theUser.lastname
  zoomUser.Value("user_info")=userInfo
  zoomUser.Compact=True//kills white spaces
  
  Var fields As String=zoomUser.ToString
  Me.OptionPostFields = fields
  Me.OptionPost = True
  Var e As Integer=Me.Perform
  Var callresult As String=Me.OutputData
  
  Var header As String=Me.HeaderData//contains 

HTTP/1.1 405 
Date: Mon, 20 Jan 2020 07:58:28 GMT
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: ZOOM
x-zm-trackingid: WEB_491537273a503797930ffc4156d7d154
X-Content-Type-Options: nosniff
Cache-Control: no-cache, no-store, must-revalidate, no-transform
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: cred=1306A2875ACFCF07FFF20EDE5B4657B7; Path=/; Secure; HttpOnly
Allow: GET, POST
Set-Cookie: _zm_currency=EUR; Domain=.zoom.us; Expires=Tue, 21-Jan-2020 
07:58:28 GMT; Path=/; Secure
Set-Cookie: _zm_mtk_guid=a5370539c5c046bb9eed0313d0517c0c; Domain=.zoom.us; 
Path=/; Secure
Content-Language: en-US

  If e<>0 Or header.contains("204")=False Then//
Return result+" Error code is:"+e.ToString+"Zoom-Error is 
"+header+EndOfLine+callresult
  Else
Return callresult
  End If
  
  return result
End Function

The thing is, If I execute this from the terminal:

curl --request PATCH \
| =>   --url https://api.zoom.us/v2/users/someUserID \
| =>   --header 'authorization: Bearer MyJWT...' \
| =>   --header 'content-type: application/json' \
| =>   --data 
'{"first_name":"Test","last_name":"Coach","type":"1","job_title":"string","company":"SomeCompany","location":"Berlin"}'

...it works just fine.

What would help me debug this if there was some way to see te actual command 
that the plugin issues. Is there?
Thanks,

Maximilian Tyrtania

___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] [ANN] 18.4pr7

2018-09-05 Thread Maximilian Tyrtania
Hi Christian,

> Am 3 sept. 2018 um 16:41 schrieb Christian Schmitz 
> :
> 
> * Added NSAppleScriptMBS.DeterminePermissionToAutomateTarget function.

I tried that function on High Sierra and received -1 as the result, which is 
not documented. Does -1 mean "does not apply because we're not on Mojave"?

Hope you have a successful conference,

Max
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Sending email with pgp- or S/MIME encryption

2018-07-23 Thread Maximilian Tyrtania
Just wanted to know if there is a possibilty I overlook or maybe something in 
the pipline to send encrypted e-mail. The chillkat-plugin seems to offer a way 
but of course I'd rather stay loyal to the MBS Plugins.

Best,

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Mailmerge with WordfileMBS

2017-11-17 Thread Maximilian Tyrtania
> 
> Technically I could of course do a append, but for that the structure must be 
> 100% the same, so I could just copy over the new paragraphs.

I think that's exactly what I'm after. I don't see how the structure in the 
individual documents could be any different if all I'm doing is replacing some 
tags like «address» or «salutation» with some strings. 

Thanks! 

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Mailmerge with WordfileMBS

2017-11-09 Thread Maximilian Tyrtania
Hi there,

I'd like to build Word-mailmerge functionality into my app. I've done the 
before using Applescript on the Mac and OLE on Windows, and that's messy 
business. I wonder if I can build it around the WordFile.ReplaceTag-command. So 
I got this really complex template (the parts-command report 17 parts...) with 
an address and a salutation placeholder.
The problem I'm having is that the WordFileMBS.writeFile command has no 
append-modus (which I need to create the final mailmerged document), so I have 
to create one document per recipient, which works fine, but ending up with a 
couple of hundred documents is inconvenient to print.

Is there a possibilty I miss or would it be feasible to teach the 
writefile-command how to append stuff to an already existing document?

Thanks,

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] [ANN] 17.2pr2

2017-04-06 Thread Maximilian Tyrtania
Hi Christian,

could you explain what you mean by "Updated PostgreSQL to version 9.6.2." ?

Thanks,

Maximilian Tyrtania
http://www.contactking.de

> On 5 Apr 2017, at 19:56, Christian Schmitz <supp...@monkeybreadsoftware.de> 
> wrote:
> 
> Hi,
> 
> 
> * Fixed ECDHEMBS for 64-bit.
> * Redone option properties on TidyDocumentMBS.
> * Updated libarchive to version 3.3.1.
> * Updated PostgreSQL to version 9.6.2.
> * Removed PPC code.
> * Updated OpenSSL to 1.1.0e and 1.0.2k
> 
> 
> Sincerely
> Christian

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Problem with CurlSMBS

2016-11-03 Thread Maximilian Tyrtania
Hi there,

I'm trying to send emails through office365, and I'm having no luck so far...

  
  dim c as new CURLSMBS
  
  dim result as new CurlEmailMBS
  
  result.SetServer("smtp.office365.com:587",true)
  
  result.SMTPUsername="aValidUserName"
  result.SMTPPassword="aPassword"
  result.Subject="subject"
  result.SetFrom("some...@somewhere.com","Some One")
  result.HTMLText="some html"
  result.PlainText="some plain text"
  result.AddTo("some...@somewhere.com","Some One")
 
  if c.SetupEmail(result) then
dim errorCode as integer=c.Perform//=35
dim errorMessage as string=c.LasterrorMessage//=error:140770FC:SSL 
routines:SSL23_GET_SERVER_HELLO:unknown protocol
  end if

Any pointers? Christian, I can send you the credentials if you want to take a 
stab at this...

Thanks!

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Setting a date property of a ABPersonMBS

2015-12-09 Thread Maximilian Tyrtania
Hmm, wait a minute, now I seem to have success with a simple date object too. 
Which is surprising again, seeing that the ABRecordMBS.setValue(value as 
variant, propertyName as string)-docs (at 
https://www.monkeybreadsoftware.net/addressbook-abrecordmbs-method.shtml) say:

Value can be Integer, Double, Dictionary, MultiValueMBS/MutableMultiValueMBS or 
String.
Returns true if the value was set successfully

Well, I guess Date objects are valid too and Christian just didn't update the 
docs.

So - nevermind.

Maximilian Tyrtania
http://www.contactking.de

> Am 09.12.2015 um 10:50 schrieb Maximilian Tyrtania <li...@contactking.de>:
> 
> ...appears to be a tricky affair, the only way I could find was
> 
>  dim d as new date
>  dim dateAsNSDate as new NSDate(d) //that's the NSDate class from Mac OS 
> Lib
>  if 
> addressBookContact.SetValue(dateAsNSDate,theAB.kABModificationDateProperty) 
> then
> ...
> 
> which I would happily use if it wasn't for the fact that the Mac OS Lib 
> doesn't work with 64 bit targets. Is there another way I am not aware of?
> This is a desktop app, so I can't use the Addressbook kit.
> 
> Thanks, Max
> 
> Maximilian Tyrtania
> http://www.contactking.de
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> Mbsplugins_monkeybreadsoftware.info mailing list
> mbsplugins@monkeybreadsoftware.info
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] CustomNSToolbarItemMBS question

2015-09-24 Thread Maximilian Tyrtania
Is there a way to set a custom color to the label of a CustomNSToolbarItemMBS?
I'm using the 15.2 version of the plugins.

Thanks,

Max
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Determining the system language

2015-03-18 Thread Maximilian Tyrtania
I don't see much wrong in what Trixi suggested. Do you?

Maximilian Tyrtania
http://www.contactking.de

 Am 17.03.2015 um 22:31 schrieb Christian Schmitz 
 supp...@monkeybreadsoftware.de:
 
 
 But for some reason this method returns 0 (=english) for my german system. 
 I'm pretty sure this method worked for me for quite some time, but now it 
 doesn't seem to anymore (under Mac OS 10.10.2). 
 
 So, what would be the best way to do this in a cocoa app?
 
 maybe this:
 
  dim s() as string = NSLocaleMBS.preferredLanguages  
  MsgBox s(0)
 
 gives de for me.
 
 which must not be the locale I use!
 
 Sincerely
 Christian
 
 -- 
 Read our blog about news on our plugins:
 
 http://www.mbsplugins.de/
 
 ___
 Mbsplugins_monkeybreadsoftware.info mailing list
 mbsplugins@monkeybreadsoftware.info
 https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Determining the system language

2015-03-17 Thread Maximilian Tyrtania
Christian kindly explained here how to determine the system language under Mac 
OS X:
http://www.monkeybreadsoftware.net/faq-howtocheckonmacoswhichcountryorlanguageiscurrentlyselected.shtml
This method internally calls GetscriptmanagerVariable which apparently is 
deprecated (but probably should still work).

But for some reason this method returns 0 (=english) for my german system. I'm 
pretty sure this method worked for me for quite some time, but now it doesn't 
seem to anymore (under Mac OS 10.10.2). 

So, what would be the best way to do this in a cocoa app?

Maximilian Tyrtania
http://www.contactking.de
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Determining the system language

2015-03-17 Thread Maximilian Tyrtania
Ah - obtaining an instance of Xojo.Core.Locale.current and then checking the 
identifier works nicely, thanks!

Maximilian Tyrtania
http://www.contactking.de

 Am 17.03.2015 um 13:57 schrieb Beatrix Willius bwill...@gmx.de:
 
 Either NSLocaleMBS.currentLocale or Xojo.Core.Locale.current for Xojo 2015r1 
 or higher.
 
 On 17.03.2015, at 12:31, Maximilian Tyrtania li...@contactking.de wrote:
 
 Christian kindly explained here how to determine the system language under 
 Mac OS X:
 http://www.monkeybreadsoftware.net/faq-howtocheckonmacoswhichcountryorlanguageiscurrentlyselected.shtml
 This method internally calls GetscriptmanagerVariable which apparently is 
 deprecated (but probably should still work).
 
 But for some reason this method returns 0 (=english) for my german system. 
 I'm pretty sure this method worked for me for quite some time, but now it 
 doesn't seem to anymore (under Mac OS 10.10.2). 
 
 So, what would be the best way to do this in a cocoa app?
 
 
 
 Mit freundlichen Grüßen/Regards
 
 Trixi Willius
 
 http://www.mothsoftware.com
 Mail Archiver X: The email archiving solution for professionals
 
 ___
 Mbsplugins_monkeybreadsoftware.info mailing list
 mbsplugins@monkeybreadsoftware.info
 https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Setting focus to NSSearchfieldMBS

2015-03-13 Thread Maximilian Tyrtania
I'm trying to set the cursor into an NSSearchfieldMBS instance in the open 
event of a window (under Mac OS 10.10.2). So I fired up the NSSearchfield 
Cotrol with menu-Example (in the Examples/Cocoa folder) and tried:

call self.NSWindowMBS.makeFirstResponder Self.NSSearchFieldControlMBS1.View

and then

Self.NSSearchFieldControlMBS1.View.performClick

and then

Self.NSSearchFieldControlMBS1.View.setFocus

...all without success. Any pointers? My own project has the searchfield in an 
RB toolbar, not sure that makes a difference. I'm still using the 14.4 plugins.


Maximilian Tyrtania
Contact King Softwareentwicklung
Neue Tel.:++0152/29270736
http://www.contactking.de http://www.contactking.de/
http://www.contactssyncer.com http://www.contactssyncer.com/

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Setting focus to NSSearchfieldMBS

2015-03-13 Thread Maximilian Tyrtania
Yes, it does set the focus nicely, but the cursor is nowhere to be seen, that's 
why I was experimenting with Self.NSSearchFieldControlMBS1.View.performClick.

Maximilian Tyrtania
http://www.contactking.de

 Am 13.03.2015 um 14:37 schrieb Massimo Valle devt...@saco.info:
 
 
 Doesn't NSSearchFieldControlMBS.setFocus works?
 For me it works.
 
 
 Massimo Valle
 
 
 On 13.03.2015, at 14:26, Maximilian Tyrtania li...@contactking.de wrote:
 
 The example already uses an NSSearchFieldControlMBS. Sorry, wasn't clear 
 about that. Is there any way to simulate a click onto it?
 
 
 Maximilian Tyrtania
 http://www.contactking.de
 
 Am 13.03.2015 um 13:34 schrieb Christian Schmitz 
 supp...@monkeybreadsoftware.de:
 
 
 Am 13.03.2015 um 12:48 schrieb Maximilian Tyrtania li...@contactking.de:
 
 I'm trying to set the cursor into an NSSearchfieldMBS instance in the open 
 event of a window (under Mac OS 10.10.2). So I fired up the NSSearchfield 
 Cotrol with menu-Example (in the Examples/Cocoa folder) and tried:
 
 
 use the NSSearchFieldControlMBS.
 
 The reason why I want to get rid of CocoaControlMBS and move to individual 
 controls is to get focus handling better.
 
 
 Sincerely
 Christian
 
 -- 
 Read our blog about news on our plugins:
 
 http://www.mbsplugins.de/
 
 ___
 Mbsplugins_monkeybreadsoftware.info mailing list
 mbsplugins@monkeybreadsoftware.info
 https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
 
 ___
 Mbsplugins_monkeybreadsoftware.info mailing list
 mbsplugins@monkeybreadsoftware.info
 https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
 
 
 
 SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
 Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: i...@saco.info
 Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, 
 Dipl.-Wirt.ing.(FH) Thorsten Beck
 
 ___
 Mbsplugins_monkeybreadsoftware.info mailing list
 mbsplugins@monkeybreadsoftware.info
 https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Setting focus to NSSearchfieldMBS

2015-03-13 Thread Maximilian Tyrtania
Yes, that was my first attempt (as mentioned in my inital mail). Anyways, 
setting the focus is not really the problem, it is just that I'd like to see 
the cursor after the focus has been set, the way it is displayed after the user 
clicks into the searchfield.

Maximilian Tyrtania
http://www.contactking.de

 Am 13.03.2015 um 15:50 schrieb Christian Schmitz 
 supp...@monkeybreadsoftware.de:
 
 
 Am 13.03.2015 um 14:26 schrieb Maximilian Tyrtania li...@contactking.de:
 
 The example already uses an NSSearchFieldControlMBS. Sorry, wasn't clear 
 about that. Is there any way to simulate a click onto it?
 
 
 you can use makeFirstResponder method on NSWindowMBS object for the window to 
 put focus on the NSVIew for the control.
 
 Sincerely
 Christian
 
 -- 
 Read our blog about news on our plugins:
 
 http://www.mbsplugins.de/
 
 ___
 Mbsplugins_monkeybreadsoftware.info mailing list
 mbsplugins@monkeybreadsoftware.info
 https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Setting focus to NSSearchfieldMBS

2015-03-13 Thread Maximilian Tyrtania
The example already uses an NSSearchFieldControlMBS. Sorry, wasn't clear about 
that. Is there any way to simulate a click onto it?


Maximilian Tyrtania
http://www.contactking.de

 Am 13.03.2015 um 13:34 schrieb Christian Schmitz 
 supp...@monkeybreadsoftware.de:
 
 
 Am 13.03.2015 um 12:48 schrieb Maximilian Tyrtania li...@contactking.de:
 
 I'm trying to set the cursor into an NSSearchfieldMBS instance in the open 
 event of a window (under Mac OS 10.10.2). So I fired up the NSSearchfield 
 Cotrol with menu-Example (in the Examples/Cocoa folder) and tried:
 
 
 use the NSSearchFieldControlMBS.
 
 The reason why I want to get rid of CocoaControlMBS and move to individual 
 controls is to get focus handling better.
 
 
 Sincerely
 Christian
 
 -- 
 Read our blog about news on our plugins:
 
 http://www.mbsplugins.de/
 
 ___
 Mbsplugins_monkeybreadsoftware.info mailing list
 mbsplugins@monkeybreadsoftware.info
 https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Problem with saving to addressbookMBS

2014-11-07 Thread Maximilian Tyrtania

 Usually I’m having no trouble saving changes I made to an ABPersonMBS. But 
 for some reason the Addressbook doesn’t acknowledge changes I made to a 
 person I obtained from the peoplepicker. So this code (a slightly changed 
 version of the Addressbook Picker example project):
 
 
 maybe the picker and you don't use same ABAddressbook as database.
 Multiple are possible, so maybe lookup the person with that ID in your 
 database.

Ah, thanks, that was in fact the issue. It looks as if the peoplepicker uses 
its own addressbook instance internally. There doesn’t appear to be a way to 
set the used instance of the picker (that I was able to spot). Well, no problem 
as long as you are aware of this.

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] IERunJavaScriptMBS-question

2014-04-29 Thread Maximilian Tyrtania
This is my first attempt at using the HTMLviewer.javascript methods. I noticed 
that there doesn’t seem to be a way to retrieve the result of a javascript call 
on Windows (as EvaluateJavaScriptMBS is Mac only) and the example „HTMLViewer 
Get and Set Field“ (in the Win/HTMLviewer windows folder) works (hacks?) around 
that limitation by assigning a value to document.title using the 
IERunJavaScriptMBS command and than reading the title via 
HTMLViewer1.IETitleMBS.

I just wanted to know if there is some limitation to this approach (can I 
assign really long strings to document.title?) and if there are other ways to 
obtain the result of aa javascript call on the Windows side.

Best,

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] CURLSMBS problem

2014-01-20 Thread Maximilian Tyrtania
Hi,

I’m using the 13.2 version of the plugins (testing with Xojo 2013r3.2 on 
Mavericks). 

I got a nasty little problem with reading pictures from an URL. The following 
methods returns the pictures just fine - but not the ones I get from facebook. 
So, for example this url 
https://graph.facebook.com/9005320/picture?width=150height=150“ doesn’t 
return a picture (d.OutputData is an empty string, no error is set). If you 
paste this URL into a browser you’ll see the picture though.

I’m a bit at a loss, because the method seems to work with all other URLs I 
tried.

Function getPictureFromURL(URL as String) As Picture

  if URL= then Return nil
  
  dim result as Picture
  dim cacert as FolderItem=app.BundleResourceFolderMBS.Child(cacert.pem)
  if cacert is nil or cacert.Exists=false then
Break
Return nil
  end if

  dim d as new CURLSMBS
  
  d.OptionSSLVerifyHost = 2 // verify server
  d.OptionSSLVerifyPeer = 1 // proofs certificate is authentic
  
  d.OptionCAInfo = cacert.UnixpathMBS
  
  // collect data, so we don't need our own subclass with events
  d.CollectOutputData = true
  
  d.OptionURL=Url
  dim error as integer=d.Perform
  
  // convert image from output data
  result = App.getPictureFromBinaryString(d.OutputData) //left out here, but 
the problem is that
// d.OutputData is an empty string
  
  if error0 then
MsgBox(Language.kProblemWithPicture+Url+.+EndOfLine+Error:+str(error))
  end if

  Return result

End Function

I might have to set additional parameters in the CURLSMBS, but I’m not sure 
which. Any pointers?

tia,

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] CURLSMBS problem

2014-01-20 Thread Maximilian Tyrtania
Am 20.01.2014 um 11:29 schrieb Christian Schmitz 
supp...@monkeybreadsoftware.de:

  d.OptionFollowLocation = true
  d.OptionMaxRedirs = 5
 
 
 there is a redirect coming back from Facebook.

Aaah, bingo, thanks a lot!

Maximilian Tyrtania
http://www.contactking.de
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] ProcessMBS question

2013-09-16 Thread Maximilian Tyrtania
Is there a way to tell if a given ProcessMBS hangs? Hangs as in does not 
respond and displays in red in the Activity Monitor. I need a way to figure 
that out on a Mac OS 10.7 machine.

best,

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] ProcessMBS question

2013-09-16 Thread Maximilian Tyrtania
Am 16.09.2013 um 14:47 schrieb Christian Schmitz 
supp...@monkeybreadsoftware.de:

 Am 16.09.2013 um 14:43 schrieb Maximilian Tyrtania li...@contactking.de:
 
 Is there a way to tell if a given ProcessMBS hangs? Hangs as in does not 
 respond and displays in red in the Activity Monitor. I need a way to figure 
 that out on a Mac OS 10.7 machine.
 
 
 I don't know a good way to see this.
 
 Not sure if this is public or only Apple knows.
 
 Of course you could send there a simply query with AppleEvent and see if it 
 returns a timeout.

Thanks Christian,

I'll give that a try.

Maximilian Tyrtania
http://www.contactking.de 

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] PHPMBS

2013-07-05 Thread Maximilian Tyrtania
Hi,

the PHPMBS stuff allows us to execute code (via myPHPMBY.call(somecode)), but 
how would I reference a script to execute?
I can call my PHP script from the Mac OS terminal, but I need to call it from 
PHPMBS, because I need the packaged dylib (in the app bundle) to execute it.

tia,

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] CustomNSToolbarMBS

2013-05-03 Thread Maximilian Tyrtania
Am 02.05.2013 um 20:45 schrieb Christian Schmitz 
supp...@monkeybreadsoftware.de:

 Do you have the version of that example which has return true in validate 
 event in MyNSToolbarItemMBS class?

Ah, no, I had the examples that came along with 12.5. Returning true in that 
event does indeed fix the problem, thanks!

Maximilian Tyrtania
http://www.contactking.de
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] CustomNSToolbarMBS

2013-05-02 Thread Maximilian Tyrtania
Hi,

I'm having a problem with CustomNSToolbarMBS in my project - sometimes my 
buttons would all show up disabled for reasons beyond me after a 
NSToolbarButton executed its Action event. So I humbly opened the Toolbar 
customized-example (Examples/Cocoa/Toolbar customized) only to see that the 
problem exists in that project as well (just hit any of the three buttons in a 
debug build and you'll see). 

Any pointers?

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Calling Methods of Subclasses

2012-09-22 Thread Maximilian Tyrtania
Am 22.09.2012 um 12:36 schrieb Julia Truchsess ju...@pragmaticdesigns.com:

 Thanks, Max, for your reply. I do in fact instantiate an object of my 
 subclass.
 
 Superclass: WindowsUSBNotificationMBS
 Subclass: MyWindowsUSBNotification
 Method added to subclass: Update
 Instance: WinUSBNotification
 
 WinUSBNotification.Update - does not work

It does work for me, though:

 dim c as new Class1  //class1 is a subclass of WindowsUSBNotificationMBS
 //with a custom method update
 c.update//this both autocompletes and compiles

I'm using RB 2012 with the 12.3 MBS plugins. Not sure what you are doing 
differently. Or did I misunderstand something?

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] Calling Methods of Subclasses

2012-09-20 Thread Maximilian Tyrtania
 Just a random thought - are your methods marked Public?
 
 Regards
 Robin
 
 On 20/09/2012 13:31, Julia Truchsess wrote:
 OK, I've achieved the desired functionality by means of 
 Introspection.MethodInfo.Invoke, but surely there's an easier/more elegant 
 way?

Which goes to show that Introspection opens the door to private methods and 
properties. A door which should be tightly closed. Not Christian's fault by any 
means.

Maximilian Tyrtania
http://www.contactking.de
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] Htmlviewer under windows

2012-06-25 Thread Maximilian Tyrtania
Hi there,

I'm playing with the idea of using the HTMLViewer as an HTML-Editor (so far I'm 
using a Text area for that purpose and go through the trouble of converting 
rich text to html), and it seems to be quite possible under Mac OS. Under 
Windows however I have 2 problems. Under Mac OS I can highlight some text in 
the htmlviewer and then the contextmenu will offer me ways to set the font, 
size, color and everything. Not so under windows  (I am using the HTML Editor 
Win-example project to test). Hoping that the new Webkit renderer for windows 
in RB2012b1 might offer more possibilities, I tried and noticed that 
Htmlviewer.IEEditableMBS doesn't seem to work at all with the webkit renderer. 

So 2 questions arise: Is it feasible, either via the context menu or some 
MBS-commands, to format text in an htmlviewer under windows like on Mac OS? And 
would setting the renderer property of the htmlviewer under windows possibly 
make a difference?

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] NSTableView example

2011-12-28 Thread Maximilian Tyrtania
Am 28.12.2011 um 08:52 schrieb Beatrix Willius:

 Been there, done that. 
 
 No, for loading data from a database the listbox doesn't cut it. As far as I 
 remember the load time isn't linear.

10.000 rows 0.08 secs
20.000 rows 0.16 secs
100.000 rows 0.786 secs
1.000.000 rows 7.79 secs

That looks quite linear to me.
 
Maximilian Tyrtania
http://www.contactking.de
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] NSTableView example

2011-12-27 Thread Maximilian Tyrtania
 Since the Real listbox is so very slow in loading data 

It is? Are you sure? Have you tried the 

Listbox.visible=false
LoadData
Listbox.visible=true - trick? 

That speeds it up quite a bit. On the windows side i use Aaron's freezeUpdate 
(from the windows functionality suite).

Best,

Maximilian Tyrtania
http://www.contactking.de


___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] document icons on windows

2011-12-22 Thread Maximilian Tyrtania
 Neat trick, but isn't IconMBS Mac only? I specifically asked for windows.
 
 IconMBS class, but not IconMBS function on folderitem class.

Aah, I see. Now I got it to work, but only on Mac OS. I forgot that for some 
reason folder items created via GetTemporaryFolderItem can't be renamed (at 
least not by simply assigning to the name-property).

So this works on Mac OS:

  dim f as 
FolderItem=specialfolder.Temporary.Child(test.+Self.TextField1.text) //(I 
entered pdf or doc into Self.TextField1)
  Self.mIcon =new Picture(32,32,16)//Self.mIcon is a picture property of the 
window
  f.DrawWideIconMBS(Self.mIcon.Graphics,0,0,32,0)
  Self.Canvas1.Invalidate

and in Canvas1 Paint event :

  if Self.mIcon isa pictURE then
g.DrawPicture(Self.mIcon,0,0,32,32)
  end if

but it would only draw a blank picture on windows...

Maximilian Tyrtania
http://www.contactking.de
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] document icons on windows

2011-12-22 Thread Maximilian Tyrtania
Which is exactly what I did (in my 2nd attempt).

Maximilian Tyrtania
http://www.contactking.de

Am 22.12.2011 um 17:05 schrieb Arnaud Nicolet:

 Le 22 déc. 2011 à 16:52 Soir, Maximilian Tyrtania a écrit:
 
 Neat trick, but isn't IconMBS Mac only? I specifically asked for windows.
 
 IconMBS class, but not IconMBS function on folderitem class.
 
 Aah, I see. Now I got it to work, but only on Mac OS. I forgot that for some 
 reason folder items created via GetTemporaryFolderItem can't be renamed (at 
 least not by simply assigning to the name-property).
 
 Perhaps you could work-around this by using 
 SpecialFolder.Temporary.child(MyFile.extension) instead?
 (not sure, as rarely use either SpecialFolder.Temporary nor Win32).

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] document icons on windows

2011-12-22 Thread Maximilian Tyrtania
Renaming the file worked, but getting the icon didn't.

Maximilian Tyrtania
www.contactking.de

Am 22.12.2011 um 17:36 schrieb Arnaud Nicolet anic...@mac.com:

 Le 22 déc. 2011 à 17:10 Soir, Maximilian Tyrtania a écrit:
 
 Which is exactly what I did (in my 2nd attempt).
 
 And it doesn't work? This implies one cannot rename any file on Win32?!
 ___
 Mbsplugins_monkeybreadsoftware.info mailing list
 mbsplugins@monkeybreadsoftware.info
 https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] document icons on windows

2011-12-22 Thread Maximilian Tyrtania

Am 22.12.2011 um 19:32 schrieb Christian Schmitz:

 Hi,
 
 try:
 
  dim f as 
 FolderItem=specialfolder.Temporary.Child(test.+Self.TextField1.text)
 
  dim t as BinaryStream= BinaryStream.Create(f, true)
  t.close
 
  Self.mIcon=f.IconMBS(16)
 
 I looks like the file must exist.


Ah, right you are, as usual. Thank you very much!

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] document icons on windows

2011-12-21 Thread Maximilian Tyrtania
Is there a way to obtain a document icon for a file extension on windows?
Along the lines of:

dim icon as picture=GetIconForExtension(.doc,32,32)
//now I'd like icon to be a 32*32 word document icon.

I realize i could create a filetype and access its icon at runtime, but it 
seems to me the OS should be responsible for this. I looked at the 
registryMBS-stuff, but didn't see a way to do it.

tia!

Maximilian Tyrtania
http://www.contactking.de

___
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info