• 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 email@hidden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One delegate's method doesn't email@hidden


  • Subject: Re: One delegate's method doesn't email@hidden
  • From: Paolo Costabel <email@hidden>
  • Date: Fri, 24 Dec 2004 07:27:54 -0800

Reading the docs, it appears that the method is only called if the marker is movable. Is this the case for your marker?

On Dec 24, 2004, at 12:26 AM, Lorenzo wrote:

Yes, it's "the same" I copied it from the XCode Help window. Me too I had
the same idea, but I checked it and it is just the same. I think is a
Cocoa's bug...


- (BOOL)rulerView:(NSRulerView *)aRulerView
            shouldRemoveMarker:(NSRulerMarker *)aMarker

I have even added the line to the header file of my view... but nothing
changes, of course. I use XCode 1.5 and MacOS X 10.3.6.
Does it work on your machine? If not, I will fill a bug report to Apple.
All the other delegate's methods (like didRemoveMarker) are called properly.
Only this seems to be not existing. And it's absurd that a delegate method
that should be invoked later (like didRemoveMarker) is called properly, and
shouldRemoveMarker that should be invoked earlier is never called.
Strange no?



Best Regards -- Lorenzo email: email@hidden

From: Paolo Costabel <email@hidden>
Date: Thu, 23 Dec 2004 17:58:10 -0800
To: Lorenzo <email@hidden>
Cc: email@hidden
Subject: Re: One delegate's method doesn't work

Lorenzo wrote:

Hi,
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?



Best Regards


Are you sure the method signature is the same?

--
Get Firefox! <http://www.getfirefox.com>



Zebra Development Technical Support
email@hidden

_______________________________________________
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: One delegate's method doesn't work
      • From: Lorenzo <email@hidden>
  • Prev by Date: Cloning an NSTableView which uses bindings
  • Next by Date: Re: One delegate's method doesn't work
  • Previous by thread: RE: Cloning an NSTableView which uses bindings
  • Next by thread: Re: One delegate's method doesn't work
  • Index(es):
    • Date
    • Thread