• 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: NSToolbarItem validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbarItem validation


  • Subject: Re: NSToolbarItem validation
  • From: Chris Miner <email@hidden>
  • Date: Tue, 14 Mar 2006 17:56:11 +0100


Am 14.03.2006 um 17:10 schrieb Tommy Nordgren:


From the NSView Docs (a base class of NSButton)
Whenever the data or state used for drawing a view object changes, the view should be sent a setNeedsDisplay:

I see. So are you suggesting I tell the NSToolbarItem item's view that it should be re displayed at the end of my validation method? Something like:


if ([[self view] isKindOfClass:[NSControl class]])
{
  NSControl *control = [self view];
  [self setEnabled:[control isEnabled]];
  [[control superview] setNeedsDisplay:YES];
}

That works, but I guess I thought that would be take care of by the toolbaritem.
_______________________________________________
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
  • Follow-Ups:
    • Re: NSToolbarItem validation
      • From: Tommy Nordgren <email@hidden>
References: 
 >NSToolbarItem validation (From: email@hidden)
 >Re: NSToolbarItem validation (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: Combining MP3s into a single track
  • Next by Date: Re: Nib XML format question
  • Previous by thread: Re: NSToolbarItem validation
  • Next by thread: Re: NSToolbarItem validation
  • Index(es):
    • Date
    • Thread