FROM : Lorenzo
DATE : Fri Dec 24 16:57:58 2004
Yes, the marker is movable, of course. And it's removable too. I even wrote
that I can see that the method shouldMoveMarker is called properly...
I can even see that the marker disappears after I removed it. But the method
sholdRemoveMarker is never called. I suppose it's a Cocoa bug.
Can you get it work well instead? Or do you get the same problem?
Best Regards
--
Lorenzo
email: <email_removed>
> From: Paolo Costabel <<email_removed>>
> Date: Fri, 24 Dec 2004 07:27:54 -0800
> To: Lorenzo <<email_removed>>
> Cc: <email_removed>
> Subject: Re: One delegate's method doesn't <email_removed>
>
> 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>
>
DATE : Fri Dec 24 16:57:58 2004
Yes, the marker is movable, of course. And it's removable too. I even wrote
that I can see that the method shouldMoveMarker is called properly...
I can even see that the marker disappears after I removed it. But the method
sholdRemoveMarker is never called. I suppose it's a Cocoa bug.
Can you get it work well instead? Or do you get the same problem?
Best Regards
--
Lorenzo
email: <email_removed>
> From: Paolo Costabel <<email_removed>>
> Date: Fri, 24 Dec 2004 07:27:54 -0800
> To: Lorenzo <<email_removed>>
> Cc: <email_removed>
> Subject: Re: One delegate's method doesn't <email_removed>
>
> 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 mails | Author | Date |
|---|---|---|
| Paolo Costabel | Dec 24, 16:27 | |
| Lorenzo | Dec 24, 16:57 |






Cocoa mail archive

