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
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
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
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
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
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
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
,
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
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
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]; ?
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
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
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
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.
_
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
15 matches
Mail list logo