• 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
Seemingly ridiculous problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Seemingly ridiculous problem...
      • From: Sam Goldman <email@hidden>
    • Re: Seemingly ridiculous problem...
      • From: Nick Müller <email@hidden>
    • Re: Seemingly ridiculous problem...
      • From: Sam Goldman <email@hidden>
  • Prev by Date: preventing delivery of Signals.
  • Next by Date: Re: Seemingly ridiculous problem...
  • Previous by thread: Re: preventing delivery of Signals.
  • Next by thread: Re: Seemingly ridiculous problem...
  • Index(es):
    • Date
    • Thread