Re: Cocoa-dev Digest, Vol 9, Issue 619
Re: Cocoa-dev Digest, Vol 9, Issue 619
- Subject: Re: Cocoa-dev Digest, Vol 9, Issue 619
- From: Koen van der Drift <email@hidden>
- Date: Tue, 28 Aug 2012 15:46:24 -0400
Hi Markus,
Yes, my notifications are delivered, the code I showed was to register for the notifications in my ViewController's awakeFromNib method. The actual methods are exactly as you showed in your post.
- Koen.
On Aug 28, 2012, at 3:00 PM, email@hidden wrote:
> Are you sure your notification is delivered? The methods do not meet the
> selector requirement, which is (quoting documentation for
> -addObserver:selector:name:object):
>
> ------------------------
> notificationSelector
> Selector that specifies the message the receiver sends notificationObserver to
> notify it of the notification posting. The method specified by
> notificationSelector must have one and only one argument (an instance of
> NSNotification).
> ------------------------
>
> So your methods should be implemented as
>
> -(void) showTextHighlight:(NSNotification *)notification
>
> - (void)removeTextHighlight:(NSNotification *)notification
>
> Regards
> Markus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden