• 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
CoreData Property access compiles, but fails at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData Property access compiles, but fails at runtime


  • Subject: CoreData Property access compiles, but fails at runtime
  • From: Rick Mann <email@hidden>
  • Date: Fri, 18 Jul 2008 22:38:23 -0700

I have a CoreData entity called WireSegment, and a class to implement it. A stripped-down version looks like this:

@interface
WireSegment : NSManagedObject
{
}

@property		CGPoint		ep1;
@property (retain)	NSString*	shadowEP1;

@end

@implementation WireSegment

@dynamic shadowEP1;

- (CGPoint)
ep1
{
	NSString* v = self.shadowEP1;
	NSPoint nsP = ::NSPointFromString(v);
	return ::NSPointToCGPoint(nsP);
}

- (void)
setEp1: (CGPoint) inVal
{
	NSString* v = ::NSStringFromPoint(::NSPointFromCGPoint(inVal));
	self.shadowEP1 = v;
}


When executing the line

	self.shadowEP1 = v;

I get the following in the console:

-[WireSegment setShadowEP1:]: unrecognized selector sent to instance 0x1067600

In the CoreData model, ep1 is a transient undefined attribute, and shadowEP1 is an NSString.

Any suggestions as to what's wrong? Thanks!

--
Rick

_______________________________________________

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:
    • SOLVED: CoreData Property access compiles, but fails at runtime
      • From: Rick Mann <email@hidden>
    • Re: CoreData Property access compiles, but fails at runtime
      • From: Rick Mann <email@hidden>
  • Prev by Date: Re: WebView load background color.
  • Next by Date: how to clear the whole render tree of CALayer fast and safely?
  • Previous by thread: Re: Dot Syntax docs missing?
  • Next by thread: Re: CoreData Property access compiles, but fails at runtime
  • Index(es):
    • Date
    • Thread