• 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: One delegate's method doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One delegate's method doesn't work


  • Subject: Re: One delegate's method doesn't work
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 25 Dec 2004 03:09:31 -0800


On Dec 23, 2004, at 4:52 PM, Lorenzo wrote:

I have a removable marker in my NSRulerView.
I remove the marker with the mouse, the marker disappears properly. Good.
The method "didRemoveMarker" is automatically invoked by the delegate. Good.
The method "shouldRemoveMarker" is never invoked. Never. WRONG!


I don't understand how the method didRemoveMarker works, the method
willMoveMarker works too, and the method shouldRemoveMarker doesn't. What
did I forget? Is a Cocoa bug?


There seems to be something peculiar happening. Experimentation suggests that your delegate is required to implement:

- (void)rulerView:(NSRulerView *)aRulerView willRemoveMarker:(NSRulerMarker *)aMarker

mmalc
_______________________________________________
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: 
 >One delegate's method doesn't work (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Cloning an NSTableView which uses bindings
  • Next by Date: modal panel (NSRunAlertPanel) _sometimes_ won't close
  • Previous by thread: Re: One delegate's method doesn't work
  • Next by thread: NSTableView and automatically hiding scrollers
  • Index(es):
    • Date
    • Thread