FROM : Lorenzo
DATE : Sat Dec 25 01:16:26 2004
And they are so. Exactly they are (I copy and paste):
- (void)rulerView:(NSRulerView*)aRulerView
didRemoveMarker:(NSRulerMarker*)aMarker
{
NSLog(@"the didRemoveMarker has been called");
}
And I always get the didRemoveMarker Log string. Well. Then:
- (BOOL)rulerView:(NSRulerView*)aRulerView
shouldRemoveMarker:(NSRulerMarker*)aMarker
{
NSLog(@"the shouldRemoveMarker has been called");
return NO;
}
And I never get the shouldRemoveMarker Log string. Wrong.
More, even if I return NO, I can remove the marker all the time.
So is it a bug or not? I think yes. I would like someone could check this on
his machine and let me know. If he can reproduce the error, we can go to
file a bug to Apple.
Best Regards
--
Lorenzo
email: <email_removed>
> From: Sherm Pendley <<email_removed>>
> Date: Fri, 24 Dec 2004 10:42:30 -0500
> To: Lorenzo <<email_removed>>
> Cc: <email_removed>
> Subject: Re: One delegate's method doesn't work
>
> On Dec 23, 2004, at 7: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.
>
> Check the names of your delegate methods.
>
> The docs say they should be -rulerView:didRemoveMarker: instead of
> -didRemoveMarker, -rulerView:shouldRemoveMarker: instead of
> -shouldRemoveMarker, and so forth.
>
> sherm--
>
> Cocoa programming in Perl: http://camelbones.sourceforge.net
> Hire me! My resume: http://www.dot-app.org
>
DATE : Sat Dec 25 01:16:26 2004
And they are so. Exactly they are (I copy and paste):
- (void)rulerView:(NSRulerView*)aRulerView
didRemoveMarker:(NSRulerMarker*)aMarker
{
NSLog(@"the didRemoveMarker has been called");
}
And I always get the didRemoveMarker Log string. Well. Then:
- (BOOL)rulerView:(NSRulerView*)aRulerView
shouldRemoveMarker:(NSRulerMarker*)aMarker
{
NSLog(@"the shouldRemoveMarker has been called");
return NO;
}
And I never get the shouldRemoveMarker Log string. Wrong.
More, even if I return NO, I can remove the marker all the time.
So is it a bug or not? I think yes. I would like someone could check this on
his machine and let me know. If he can reproduce the error, we can go to
file a bug to Apple.
Best Regards
--
Lorenzo
email: <email_removed>
> From: Sherm Pendley <<email_removed>>
> Date: Fri, 24 Dec 2004 10:42:30 -0500
> To: Lorenzo <<email_removed>>
> Cc: <email_removed>
> Subject: Re: One delegate's method doesn't work
>
> On Dec 23, 2004, at 7: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.
>
> Check the names of your delegate methods.
>
> The docs say they should be -rulerView:didRemoveMarker: instead of
> -didRemoveMarker, -rulerView:shouldRemoveMarker: instead of
> -shouldRemoveMarker, and so forth.
>
> sherm--
>
> Cocoa programming in Perl: http://camelbones.sourceforge.net
> Hire me! My resume: http://www.dot-app.org
>
| 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

