• 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: Detecting Managed Object Property Change From Undo Redo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting Managed Object Property Change From Undo Redo


  • Subject: Re: Detecting Managed Object Property Change From Undo Redo
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 28 Jan 2015 02:07:57 +0000

On Jan 27, 2015, at 17:21 , Jerry Krinock <email@hidden> wrote:
>
> Compiler does *not* warn if you have a custom primitive setter without a getter.

FWIW, the compiler doesn’t warn you if you have any setter without a getter.

> I also tried to get it to compile without declaring the instance variable that I access in the custom accessors, by just declaring the property, but that did not work.  To compile, I was required to declare the instance variable in the @interface{…}.

I think it’s just that you’re expecting it to be special, but it isn’t. If you want this custom primitive getter:

- (…) primitiveX {…}

and you want the synthesized instance variable, you’d need to declare the property:

@property … primitiveX;

and the ivar’s name would be ‘_primitiveX’, not ‘x’ as you tried earlier. Core Data isn’t on the compiler’s radar.

_______________________________________________

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


References: 
 >Detecting Managed Object Property Change From Undo Redo (From: Richard Charles <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Mike Abdullah <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Jerry Krinock <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Richard Charles <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Jerry Krinock <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Richard Charles <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Jerry Krinock <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Jerry Krinock <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Quincey Morris <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Keary Suska <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Jerry Krinock <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Keary Suska <email@hidden>)
 >Re: Detecting Managed Object Property Change From Undo Redo (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSTableCellView Constraints?
  • Next by Date: Re: NSTableCellView Constraints?
  • Previous by thread: Re: Detecting Managed Object Property Change From Undo Redo
  • Next by thread: Re: Detecting Managed Object Property Change From Undo Redo
  • Index(es):
    • Date
    • Thread