• 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
Why multiple calls to an IB palette inspector's 'revert' method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why multiple calls to an IB palette inspector's 'revert' method?


  • Subject: Why multiple calls to an IB palette inspector's 'revert' method?
  • From: Wagner Truppel <email@hidden>
  • Date: Tue, 1 Aug 2006 09:24:42 -0700

Hi there...

I've noticed that the palette I'm writing gets its inspector's 'revert' method called several times when a new object is dragged from the palette to a window or panel. At first I thought this was a problem with my code, but it isn't!

By setting up a minimal palette using Apple's IB palette template and adding

NSLog(@"revert called by %@", [sender class]);

to the 'revert' method of its inspector class, you'll notice that 'revert' gets called NINE times in a row, by an object of class IBInspectorManager. And this is without *any* extra code of any kind.

Does anyone have any idea why that is?

Wagner
_______________________________________________
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: Re: NSTabView and edit fields
  • Next by Date: Re: NSTabView and edit fields
  • Previous by thread: NSScroller setFloatValue
  • Next by thread: NSImage or CIImage? Resolution problem
  • Index(es):
    • Date
    • Thread