• 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: Core Data: undo and non-object attribute [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: undo and non-object attribute [SOLVED]


  • Subject: Re: Core Data: undo and non-object attribute [SOLVED]
  • From: Jakob Olesen <email@hidden>
  • Date: Mon, 16 Oct 2006 00:05:52 +0200


On 15/10/2006, at 23.37, Matteo Rossi wrote:

2. Keep your _point struct and implement primitive get/set accessors:

- (double)primitiveX
{
	return _point.x;
}

- (void)setPrimitiveX:(double)x
{
	_point.x = x;
}

That is all.

No, it can't be all. If I don't implement setX and X, setY and Y KVO doesn't work nor undo and save.

That is very interesting. It means my skin-and-guts story was wrong, and valueForKey: does not use the primitive accessors. My bad.



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Core Data: undo and non-object attribute (From: Matteo Rossi <email@hidden>)
 >Re: Core Data: undo and non-object attribute (From: Jakob Olesen <email@hidden>)
 >Re: Core Data: undo and non-object attribute (From: Matteo Rossi <email@hidden>)
 >Re: Core Data: undo and non-object attribute (From: Jakob Olesen <email@hidden>)
 >Re: Core Data: undo and non-object attribute [SOLVED] (From: Matteo Rossi <email@hidden>)
 >Re: Core Data: undo and non-object attribute [SOLVED] (From: Jakob Olesen <email@hidden>)
 >Re: Core Data: undo and non-object attribute [SOLVED] (From: Matteo Rossi <email@hidden>)
 >Re: Core Data: undo and non-object attribute [SOLVED] (From: Jakob Olesen <email@hidden>)
 >Re: Core Data: undo and non-object attribute [SOLVED] (From: Matteo Rossi <email@hidden>)

  • Prev by Date: Re: How to forward mouse events to another view?
  • Next by Date: Sending ASCII Messages to a TCP Socket
  • Previous by thread: Re: Core Data: undo and non-object attribute [SOLVED]
  • Next by thread: Cursor does not change when moving mouse over controls.
  • Index(es):
    • Date
    • Thread