Skip navigation.
 
mlRe: One delegate's method doesn't workcocoa-dev@lists.apple.com
FROM : Paolo Costabel
DATE : Fri Dec 24 16:27:54 2004

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_removed>
>

>> From: Paolo Costabel <<email_removed>>
>> Date: Thu, 23 Dec 2004 17:58:10 -0800
>> To: Lorenzo <<email_removed>>
>> Cc: <email_removed>
>> 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_removed>

Related mailsAuthorDate
mlRe: One delegate's method doesn't workcocoa-dev@lists.apple.com Paolo Costabel Dec 24, 16:27
mlRe: One delegate's method doesn't work Lorenzo Dec 24, 16:57