FROM : mmalcolm crawford
DATE : Sat Dec 25 12:09:31 2004
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
DATE : Sat Dec 25 12:09:31 2004
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
| Related mails | Author | Date |
|---|---|---|
| Lorenzo | Dec 24, 01:52 | |
| Paolo Costabel | Dec 24, 02:58 | |
| Sherm Pendley | Dec 24, 16:42 | |
| Lorenzo | Dec 25, 01:16 | |
| mmalcolm crawford | Dec 25, 12:09 |






Cocoa mail archive

