Seemingly ridiculous problem...
Seemingly ridiculous problem...
- Subject: Seemingly ridiculous problem...
- From: Kigney <email@hidden>
- Date: Thu, 14 Feb 2002 00:55:32 -0800 (PST)
In a function, I am doing this:
-(id)function
{
NSImage* pointer;
pointer = [NSImage
initByReferencingFile:@"filename.jpg"];
...
}
WHY am I getting these compile errors:
warning: cannot find class (factory) method.
warning: return type for `initByReferencingFile:'
defaults to id
I have the cocoa framework included, as well as AppKit
and Foundation.
I included cocoa.h with the file...
Are these functions undeclared in the Cocoa framework
(and not thus documented by apple?), or am I missing
something ridiculously obvious? sorry if this is a
dumb question...
Thanks
-Josh
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
_______________________________________________
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.