Re: Programmatically creating a small check box

2009-12-28 Thread Frederik Slijkerman
Thanks, but that doesn't work for me. However I've now created a small test program where changing the control size works correctly, so I think I can narrow it down to see what causes the problem. Best regards, Frederik Slijkerman Kyle Sluder wrote: On Sun, Dec 27, 2009 a

Programmatically creating a small check box

2009-12-27 Thread Frederik Slijkerman
Hi, I am creating a check box programmatically and need to set its control size to small. My code is something like: NSButton *check = [NSButton initWithFrame: ...]; ... [[check cell] setControlSize:NSSmallControlSize]; [check setFont:[NSFont systemFontOfSize: [NSFont systemFontSizeForContro

Re: passing nothing to method with CGPoint argument

2009-12-05 Thread Frederik Slijkerman
The usual solution is to change the method signature to accept a CGPoint* argument instead, so you can also pass NULL / nil separately from any point. Best regards, Frederik Slijkerman Chunk 1978 wrote: i have an method that takes a CGPoint as an argument. i would like to call the method

Re: Aqua animations drawing from separate thread

2009-08-15 Thread Frederik Slijkerman
an off-screen bitmap if drawRect is called from the main thread, and just draw that bitmap if drawRect is called from another thread. But this is slower and consumes more memory. Best regards, Frederik Slijkerman BravoBug Software wrote: > If you don't need to do secondary-thread drawing

Aqua animations drawing from separate thread

2009-08-14 Thread Frederik Slijkerman
seems like a huge responsibility to make sure this will always work correctly... Thanks in advance! Best regards, Frederik Slijkerman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Cocoa window in Carbon app and [NSApp postEvent]

2009-08-14 Thread Frederik Slijkerman
Brilliant! Thank you very much! Best regards, Frederik Slijkerman Ken Ferry wrote: Hi, It sounds to me like you are interested in -[NSObject performSelectorOnMainThread:withObject:waitUntilDone:modes:]. -Ken On Thu, Aug 13, 2009 at 12:38 PM, Frederik Slijkerman mailto:frede

Cocoa window in Carbon app and [NSApp postEvent]

2009-08-13 Thread Frederik Slijkerman
a Carbon application. Thanks in advance! Best regards, Frederik Slijkerman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lis

Re: Photoshop plugin with Cocoa UI problems

2009-06-11 Thread Frederik Slijkerman
, Frederik Slijkerman Scott Andrew wrote: What doesn't make sense is that the plugin i worked on was modal (it was an export plugin). What I noticed in our window does is a call abortModal on the windowWIllClose notification. From what i can see, from the messages in your original post, it

Re: Photoshop plugin with Cocoa UI problems

2009-06-11 Thread Frederik Slijkerman
Hi Scott, I'm already doing all of that (I studied your earlier post in the message archive), but it looks like the modal window was the problem, see my other message. Thanks anyway! Best regards, Frederik Slijkerman Scott Andrew wrote: Make sure your C function calls NSApplicatio

Re: Photoshop plugin with Cocoa UI problems

2009-06-11 Thread Frederik Slijkerman
et the crash using a modal window. So, it looks like this could be the solution. Thanks! Best regards, Frederik Slijkerman Florian Soenens wrote: Hi Frederik, Have you tried wiring your window to an IBOutlet of your Controller and displaying it with [window makeKeyAndOrderFront:nil]; ?

Photoshop plugin with Cocoa UI problems

2009-06-10 Thread Frederik Slijkerman
d -- I've been staring at this for about three days now... Best regards, Frederik Slijkerman ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Hide/Show Password

2009-05-14 Thread Frederik Slijkerman
gards, Frederik Slijkerman Patrick Neave wrote: I would like to add a little button next to my apps password field to hide/show the password. I have searched this list but although it has bee mentioned I can find no example of doing this. NSSecureTextField seems to be the way to go but I a

Re: Win->MacOS porting question.

2009-05-13 Thread Frederik Slijkerman
a a DLL or framework: you can just compile cross-platform and platform-specific files into one executable. If you're an inexperienced developer, this will be difficult to pull off, but you'll learn a lot along the way. :-) Best regards, Frederik Slijkerman Filip van der Meere

Re: NSSliderCell, lockFocus question

2009-04-13 Thread Frederik Slijkerman
gain, for the existing code base it's much easier to be able to work with low-level CG calls instead of Cocoa objects. Cocoa is a great way to do things, but it's so different from other APIs (such as Carbon or Win32) that it makes porting very hard... Best regards, Frederik Slijkerman. _

NSSliderCell, lockFocus question

2009-04-13 Thread Frederik Slijkerman
st activate a graphics context that works on this view? Specifically, would it work to do: NSGraphicsContext *gc = [NSGraphicsContext contextWithGraphicsPort: myCGContextRef]; [NSGraphicsContext setCurrentContext:gc]; to get NSSliderCell to draw into any custom CGContextRef? Thanks for any com