• 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
NSImageRep Trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageRep Trouble


  • Subject: NSImageRep Trouble
  • From: Seth Willits <email@hidden>
  • Date: Fri, 22 Nov 2002 18:58:03 -0800

I must be missing something. I'm attempting to open an image from the
resources directory in my bundle and then draw it:

ImageRep is an instance variable.

imageRep = [NSImageRep imageRepWithContentsOfFile:@"Image.tiff"];
[imageRep retain]



The file is there in the final product with no typos, but ImageRep is always
nil.


And then later:

- (void)drawRect:(NSRect)rect
{
...
[imageRep drawAtPoint:point];
}


Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

"All is not gold that glitters."
-- Miguel de Cervantes
---------------------------------------------------------------------------
_______________________________________________
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: NSImageRep Trouble
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: File Paths
  • Next by Date: Re: NSImageRep Trouble
  • Previous by thread: Re: File Paths
  • Next by thread: Re: NSImageRep Trouble
  • Index(es):
    • Date
    • Thread