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

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.

  • Follow-Ups:
    • Re: Seemingly ridiculous problem...
      • From: Ondra Cada <email@hidden>
References: 
 >Seemingly ridiculous problem... (From: Kigney <email@hidden>)

  • Prev by Date: Re: Seemingly ridiculous problem...
  • Next by Date: Re: Seemingly ridiculous problem...
  • Previous by thread: Re: Seemingly ridiculous problem...
  • Next by thread: Re: Seemingly ridiculous problem...
  • Index(es):
    • Date
    • Thread