Instance Variables of NSManagedObject Subclasses

2011-06-30 Thread Allen Ingling
Dear cocoa-dev list, I want my NSManagedObjects to retain a variable valid for the lifetime the application instance but not between instances of the application. So I have subclassed NSManagedObject and added an instance variable to the NSManagedObject subclass and defined a property as follows:

Instance Variables of NSManagedObject Subclasses

2011-06-30 Thread Allen Ingling
Dear cocoa-dev list, I want my NSManagedObjects to retain a variable valid for the lifetime the application instance but not between instances of the application. So I have subclassed NSManagedObject and added an instance variable to the NSManagedObject subclass and defined a property as follows:

Instance Variables of NSManagedObject Subclasses

2011-06-30 Thread Allen Ingling
Dear cocoa-dev list, I want my NSManagedObjects to retain a variable valid for the lifetime the application instance but not between instances of the application. So I have subclassed NSManagedObject and added an instance variable to the NSManagedObject subclass and defined a property as follows:

Re: Changing classes

2010-10-01 Thread Allen Ingling
On Fri, Oct 1, 2010 at 4:19 AM, Remco Poelstra wrote: > I think I do not fully understand the difference you are trying to make > between device and class behaviour. I think what he means is: use a single class for representing all of your amplifier types instead of one unique subclass per amp

Re: Changing classes

2010-09-30 Thread Allen Ingling
On Thu, Sep 30, 2010 at 2:28 PM, Remco Poelstra wrote: > Hi, > > I've a class that represents a general piece of hardware. Subclasses of > that class represent more specific versions of that hardware. When I scan > the network for hardware, I first only know some basic properties of the > hardwar

Re: stringByReplacingCharactersInRange leading to bus error

2010-08-19 Thread Allen Ingling
On Wed, Aug 18, 2010 at 1:52 PM, Murat Konar wrote: > > On Aug 18, 2010, at 11:06 AM, John C. Randolph wrote: > > -stringByReplacingCharactersInString: creates and returns a new string, >> which is autoreleased. >> > > Always? I recall running into a problem that was caused by > -stringByReplaci

Re: stringByReplacingCharactersInRange leading to bus error

2010-08-19 Thread Allen Ingling
On Tue, Aug 17, 2010 at 4:03 PM, James Miller wrote: > Hello. > > I'm a little new to Objective-C / Cocoa so please don't shoot me, but I've > been looking around for a few hours and can't seem to figure out what I'm > doing wrong on my own and could use a second/third/fourth set of eyes. > > I h