NSImage problem
NSImage problem
- Subject: NSImage problem
- From: Damien Pacaud <email@hidden>
- Date: Tue, 14 Oct 2003 11:47:42 +0200
hi list,
I am trying to have an NSWindow displayed at the right size when i open
an image in my app.
For example if my image is 800*600 and the screen is big enough I would
like to make a NSWindow of this size so the image can be shown entirely.
I tried to subclass nsWindow and overload the
-(id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag
method
but I can't acces to any of the NSWindow methods in that method since
the instance does not yet exist(or has not been fully inited).
Is there a way to specify the size of the window right after it is
inited ? and make it so the user doesnt "see" the modification in the
size.
Thanks in advance for any pointers or help
Damien Pacaud
_______________________________________________
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.