Re: NSOpenPanel and JPG files
Re: NSOpenPanel and JPG files
- Subject: Re: NSOpenPanel and JPG files
- From: Ryan Kuykendall <email@hidden>
- Date: Mon, 26 Apr 2004 20:45:23 -0700 (PDT)
Thanks Louis,
I tried that too, but I'm still getting (null) with this:
NSLog(@"Image File Types: %@\n", imageFileTypesList);
Ryan
On Mon, 26 Apr 2004, Louis C. Sacha wrote:
>
Hello...
>
>
The imageFileTypes method is an NSImage class method, so you would
>
want to do something like:
>
>
NSArray * imageFileTypesList = [NSImage imageFileTypes];
>
>
If you plan to keep the array around beyond the duration of the
>
current method, make sure that you retain it and release it at the
>
appropriate time.
>
>
>
Hope that helps,
>
Louis
>
>
>
>I'm working on something similar, but I am not able to use the NSImage
>
>method, imageFileTypes, either.
>
>
>
>I'm initializing my array like so:
>
>
>
> NSArray * imageFileTypesList = [[[NSImage alloc] init]
>
>imageFileTypes];
>
>
>
>but when I try to dump my array, I'm getting (null)...
>
>
>
>I must be missing something fundamental (and yes I have imported
>
>AppKit/NSImage.h...)
>
>
>
>Any ideas?
>
>
>
>Ryan
>
--
============================================================
Ryan Kuykendall
email@hidden
http://undef.com/ryank/ryanAtBawa50percent.JPG
============================================================
_______________________________________________
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.