• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa-dev Digest, Vol 9, Issue 619
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Binding NSSegmentedControl selection to user defaults
  • Next by Date: CoreData UIManagedDocument saving/closing questions
  • Previous by thread: Re: Binding NSSegmentedControl selection to user defaults
  • Next by thread: CoreData UIManagedDocument saving/closing questions
  • Index(es):
    • Date
    • Thread