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

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.

  • Follow-Ups:
    • Re: NSImage problem
      • From: j o a r <email@hidden>
References: 
 >Re: how to warn users of wrong system (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: how to warn users of wrong system
  • Next by Date: Re: NSImage problem
  • Previous by thread: Re: how to warn users of wrong system
  • Next by thread: Re: NSImage problem
  • Index(es):
    • Date
    • Thread