• 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: Managed Object with Getter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Managed Object with Getter


  • Subject: Re: Managed Object with Getter
  • From: Richard Somers <email@hidden>
  • Date: Wed, 13 Jan 2010 06:39:36 -0700

On Jan 13, 2010, at 1:17 AM, Kyle Sluder wrote:

This code cannot generate that error because it doesn't send any
messages. You need to post the code to which the error actually
refers.

This works.

     @property (nonatomic, retain) NSNumber *selected;

     if ([[self selected] boolValue]) { ... }

This produces error "unrecognized selector sent to instance".

@property (nonatomic, retain, getter=isSelected) NSNumber *selected;

     if ([[self isSelected] boolValue]) { ... }

--Richard

_______________________________________________

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


  • Follow-Ups:
    • Re: Managed Object with Getter
      • From: Jim Correia <email@hidden>
References: 
 >Managed Object with Getter (From: Richard Somers <email@hidden>)
 >Re: Managed Object with Getter (From: Kyle Sluder <email@hidden>)

  • Prev by Date: NSWeekCalendarUnit and DIN 1355 / ISO 8601
  • Next by Date: Re: Managed Object with Getter
  • Previous by thread: Re: Managed Object with Getter
  • Next by thread: Re: Managed Object with Getter
  • Index(es):
    • Date
    • Thread