Re: NSImage problem
Re: NSImage problem
- Subject: Re: NSImage problem
- From: j o a r <email@hidden>
- Date: Tue, 14 Oct 2003 12:05:27 +0200
Why would you need to subclass NSWindow in order to be able to specify
it's size at creation time? That's what the "contentRect" parameter is
used for...
Also, the window is not placed on screen when you create it, so you can
resize and move it as much as you want before sending it a
"orderFront:", or "makeKeyAndOrderFront:" to put it on screen, i.e.
make it visible.
j o a r
On 2003-10-14, at 11.47, Damien Pacaud wrote:
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
_______________________________________________
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.