January 2004

I need a small database for my cocoa project...

I need something light, if possible free (freeware, LGPL, BSD, ... licensing), fast and with trouble-free installation from my users point of view… any idea ?
More...

I got errors when passing strings I got from Cocoa to UNIX or BSD calls…

I got some file names from NSOpenPanel methods and I pass these to UNIX calls like open, but sometimes it fails, I don't understand why...
More...

How to make screenshot programmaticaly ?

How to make a screenshot from my own program code without using an external tool ?
More...

How can I accept directory drops to my app icon?

I would like to accept directories with arbitrary names dropped onto my application icon, in the Dock and elsewhere.
More...

How to turn off line wrap in NSTextView ?

Is there a way - API or other - to turn off line wrap in NSTextView ?
More...

How to know the size of a dash pattern in a NSBezierPath ?

When using - (void)getLineDash:(float *)pattern count:(int *)count phase:(float *)phase how do I know the size of the pattern buffer to pass since I don't know yet the value of count ?
More...

Problem using sheets (selector not recognized)

I'm trying to implement sheets into my app except every time the method is called to begin the sheet i get this warning in the console: 2004-01-07 01:57:08.026 PP[672] *** -[NSApplication beginSheet:modalForWindow:modalForDelegate:didEndSelector:contextInfo:]: selector not recognized 2004-01-07 01:57:08.030 PP[672] *** -[NSApplication beginSheet:modalForWindow:modalForDelegate:didEndSelector:contextInfo:]: selector not recognized
More...