• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using NSImage in command line tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Best way to submit Cocoa bug reports?
  • Next by Date: Re: cocoa-dev digest, Vol 2 #565 - 12 msgs
  • Previous by thread: Using NSImage in command line tool
  • Next by thread: Help Viewer issue
  • Index(es):
    • Date
    • Thread