FROM : Seth Willits
DATE : Sat Nov 23 03:58:03 2002
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sat Nov 23 03:58:03 2002
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Seth Willits | Nov 23, 03:58 | |
| David Remahl | Nov 23, 04:06 | |
| Seth Willits | Nov 23, 16:37 | |
| Scott Anguish | Nov 24, 09:13 | |
| Seth Willits | Nov 24, 19:25 |






Cocoa mail archive

