• 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
Disabling save panel's "Save" button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disabling save panel's "Save" button


  • Subject: Disabling save panel's "Save" button
  • From: "Paul J. Lucas" <email@hidden>
  • Date: Sun, 18 Sep 2005 14:49:07 -0700 (PDT)

	I've added some custom NSTextFields to a save panel to represent
	image width X height.  I've figured out how to trap every
	keystroke so that editing one (say, width) automatically
	updates the other (in this case, height) so that the aspect
	ratio is preserved.  It works great.

	But what I'd also like to do is to disable the Save button if
	either value is 0.  However, I can't fiure out how to get access
	to the Save button to disable it.  There's no appropriate method
	on the NSSavePanel.

	So... how can I disable/enable the Save button whenever I
	please?

	- 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

  • Prev by Date: Chasing Lines Image
  • Next by Date: Re: Bindings&Actions on Document-based Applications
  • Previous by thread: Re: Chasing Lines Image
  • Next by thread: Removing a system extension
  • Index(es):
    • Date
    • Thread