Re: Using NSImage in command line tool
Re: Using NSImage in command line tool
- Subject: Re: Using NSImage in command line tool
- From: Ondra Cada <email@hidden>
- Date: Tue, 30 Apr 2002 18:52:16 +0200
On Tuesday, April 30, 2002, at 03:50 , <email@hidden> wrote:
I am trying to create an image (and later save it to a file) in a small
command line tool, so I created a "Foundation tool" with Project builder
and added references to the AppKit manually. I am not sure if this is OK
to
do (I mean, if it's OK to use the AppKit in a tool that is run from the
command line).
Quite OK. You need an NSApplication though. Just add to the initalization
[NSApplication sharedApplication]
that should help (well, at least, it did always for me).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.