• 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: Customizing Save panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing Save panel


  • Subject: Re: Customizing Save panel
  • From: "Paul J. Lucas" <email@hidden>
  • Date: Fri, 4 Aug 2006 19:01:18 -0700 (PDT)

On Fri, 4 Aug 2006, Michael Watson wrote:

> Yes, but you'll need to do a little bit of work.
>
> Change the size of the tab view and the window size relative to the new tab
> view size. Then adjust the window's y-axis origin to compensate. For added
> awesome, have the window animate when it resizes with NSWindow's
> -setFrame:display:animate: method.

	OK, I've been playing around with this and I can't get it to
	resize properly.

	First, even though screen/window coordinates are true cartesian
	(Y increases upwards), coordinates in NIB files seem to have Y
	increasing downwards.

	I'm using NSSavePanel and setAcessoryView to set my custom view.
	The custom view has 1 pop-up menu and a tab view.  When the
	pop-up menu has menu item 0 selected, there should be no tab
	view at all; then any menu item > 0 is selected, there should be
	the tab view.

	When I change tabs when menu item 0 is selected, I decrease the
	height of the tab view's frame rectangle by 168 pixels (its
	full-sized height) and also decrease the height of the
	accessory main view's height by the same amount.

	The documentation for setAccessoryView says in part:

		The NSSavePanel object automatically resizes
		itself to accommodate aView. You can invoke
		this method repeatedly to change the accessory
		view as needed.

	so, in theory, it should auto-resize.  But nothing really
	happens except some of the controls on the bottom have their
	lower pixels shaved off.

	I did try your suggestion of manipulating the window's Y
	coordinate and size, but that changed the size of the part of
	the NSSavePanel where the file-chooser part is and not the
	accessory view.

	Help?

	- Paul
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Customizing Save panel (From: "Paul J. Lucas" <email@hidden>)
 >Re: Customizing Save panel (From: "Shawn Erickson" <email@hidden>)
 >Re: Customizing Save panel (From: "Paul J. Lucas" <email@hidden>)
 >Re: Customizing Save panel (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: AppleEvent and NSAppleEventDescriptor
  • Next by Date: Re: Re: Re: resolving aliases
  • Previous by thread: Re: Customizing Save panel
  • Next by thread: Licensing a cocoa framework ?
  • Index(es):
    • Date
    • Thread