Re: Seemingly ridiculous problem...
Re: Seemingly ridiculous problem...
- Subject: Re: Seemingly ridiculous problem...
- From: Nick Müller <email@hidden>
- Date: Thu, 14 Feb 2002 10:11:33 +0100
On 14.02.2002 at 0:55 Uhr, Kigney wrote:
>
pointer = [NSImage initByReferencingFile:@"filename.jpg"];
>
...
Looking at the docs, initByReferencingFile is an instance method
(preceeded by "-") not a class method ("+").
So you should write something like this:
NSImage *image = [[NSImage alloc] init];
[image initByReferencingFile:@"filename.jpg"];
or shorter:
NSImage *image = [[NSImage alloc]
initByReferencingFile:@"filename.jpg"];
HTH,
Nick
.........................................
logic tools
WebObjects // Web Authoring // Perl
Nick Mueller // Munich // Germany
_______________________________________________
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.