• 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
Re: programatically resizing a sheet, visually from the bottom up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programatically resizing a sheet, visually from the bottom up


  • Subject: Re: programatically resizing a sheet, visually from the bottom up
  • From: arri <email@hidden>
  • Date: Fri, 23 Mar 2007 04:28:22 +0100

hi brian,

i never fully researched this, so anyone who knows some relevant documents is invited to share that info, but my experience is that objects that get inited in IB don't always behave like you expect them to.

in the case of the sheet, i wanted full controll over its' appearance, buti only got this to work after i created the sheet in code (sublassed NSWindow) and then attached it to the relevant window. setting the subclass in IB wouldn't help.

i've seen similair behaviour when trying to create an NSButton with an NSRecessedBezelStyle (if i'm right...might get the name wrong now)
that style is documented for NSButton, but not available in IB...


for the sheet i use code;

SheetWindow is just an NSWindow-subclass,
this code comes from the main app-contoller class


----------
...
sheet = [[SheetWindow alloc] initWithContentRect:(NSRect)NSMakeRect (0,0,250,100)
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO];
...
... (creating views ect)
...


[NSApp beginSheet:sheet
	modalForWindow:mainWindow
	modalDelegate:self
	didEndSelector:@selector(didEndSheet:returnCode:contextInfo:)
	contextInfo:nil];

[[sheet contentView] addSubview:] ...
...

----------



best
arri




although i can't support the following with relevant docs (anyone?), my experience is that for On Mar 23, 2007, at 03:33 33, Brian Amerige wrote:

arri,

I just converted by subclassed NSPanel to an NSWindow subclass, and it yields the same result. However, when I tried this with another window, it seems to remove from the bottom as I'd like. Is there any dependency on the resizing-options set in IB?

Cheers,
Brian.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: programatically resizing a sheet, visually from the bottom up (From: Brian Amerige <email@hidden>)

  • Prev by Date: Re: Twain, Image Capture, Intel, PPC
  • Next by Date: filteredArrayUsingPredicate - need help with run time error
  • Previous by thread: Re: programatically resizing a sheet, visually from the bottom up
  • Next by thread: NSViewAnimation choppy animations
  • Index(es):
    • Date
    • Thread