a few Core Data questions: Predicates and document based app

2008-12-18 Thread Michael B Johnson
docInfo as their inverse relationship. As always, thanks for any insight. Looking forward to getting my third Core Data under my belt so my intuition for this stuff widens... --> Michael B. Johnson, PhD --> http://homepage.mac.com/drwave (per

Re: a few Core Data questions: Predicates and document based app

2008-12-18 Thread Michael B Johnson
On Dec 18, 2008, at 11:04 AM, mmalc Crawford wrote: On Dec 18, 2008, at 10:47 AM, Michael B Johnson wrote: I have an entity (let's called it MyThing) that has an optional parentThing relationship. I'm interested in MyThings that either don't have their parent set, (&quo

What's the most cocoa-ey pattern for this?

2009-01-08 Thread Michael B Johnson
weird about this is that we're handing in a *dictionary* that contains the object that will send out this notification, not the object itself. That's weird, right? But you see what I'm trying to do? Is there some other pattern here I'm missing? Thanks in advance for any h

Re: What's the most cocoa-ey pattern for this?

2009-01-08 Thread Michael B Johnson
On Jan 8, 2009, at 3:28 PM, j o a r wrote: On Jan 8, 2009, at 2:59 PM, Michael B Johnson wrote: This Sequence has a delegate, that would like to express interest in the following: (1) when the "current time" moves forward into the beginning of an Element or Marker. (2

Re: What's the most cocoa-ey pattern for this?

2009-01-08 Thread Michael B Johnson
On Jan 8, 2009, at 3:31 PM, Greg Titus wrote: On Jan 8, 2009, at 3:28 PM, j o a r wrote: On Jan 8, 2009, at 2:59 PM, Michael B Johnson wrote: This Sequence has a delegate, that would like to express interest in the following: (1) when the "current time" moves forwar

Re: What's the most cocoa-ey pattern for this?

2009-01-10 Thread Michael B Johnson
gTimeRangeDirection)direction; @end enum { QTTrackingTimeRangeDirectionForward, QTTrackingTimeRangeDirectionBackward, QTTrackingTimeRangeDirectionUnknown }; typedef NSUInteger QTTrackingTimeRangeDirection; --> Michael B. Johnson, PhD --> http://homepage.mac.com/drwave (personal) -->

what the hell is Error (1007) creating CGSWindow?

2009-01-14 Thread Michael B Johnson
* imgPath = [self.directory stringByAppendingPathComponent:imgName]; NSData* tiffData = [image TIFFRepresentationUsingCompression:NSTIFFCompressionLZW factor:1.0]; [tiffData writeToFile:imgPath atomically:YES]; [pool drain]; } }

Re: what the hell is Error (1007) creating CGSWindow?

2009-01-14 Thread Michael B Johnson
ted? Not acceptable. --> Michael B. Johnson, PhD --> http://homepage.mac.com/drwave (personal) --> http://xenia.media.mit.edu/~wave (alum) --> MPG Lead --> Pixar Animation Studios ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: what the hell is Error (1007) creating CGSWindow?

2009-01-15 Thread Michael B Johnson
On Jan 15, 2009, at 9:35 AM, David Duncan wrote: On Jan 15, 2009, at 9:32 AM, David Duncan wrote: On Jan 14, 2009, at 9:10 PM, Michael B Johnson wrote: So I have an application that has been bedeviled by a nasty, nasty bug for years that manifests itself as an exception being thrown

basic Core Data scaling question

2008-09-01 Thread Michael B Johnson
when I set the project relationship on the Image that is taking up all the time. If I bring in all the Projects, Artists, Albums and Images without wiring up the Images to the Project (although I do do it for the Albums), the whole thing runs in about 30 seconds. This must be a com

Re: basic Core Data scaling question

2008-09-02 Thread Michael B Johnson
Thanks Ben. This was all great information. The doc link was the key - after I posted, and kept sampling my app, I figured out a number of these myself, but the doc made me more confident that I wasn't missing something in Core Data. On a tangential note, how can I get Instruments to give

NSManagedObject subclass accessor pattern mystery?

2008-09-29 Thread Michael B Johnson
;color"]) { [self setColor:value]; return ; } [super setPrimitiveValue:value forKey:key]; } But again, it never fires. I'm assuming I'm missing something obvious... Thanks. --> Michael B. Johnson, PhD --> http://homepage.mac.co

Re: NSManagedObject subclass accessor pattern mystery?

2008-09-30 Thread Michael B Johnson
Thanks for all the insight. A few questions: On Sep 30, 2008, at 3:08 AM, Ben Trumbull wrote: So I have a CoreData app (10.5.5, 64 bit only) that has a NSManagedObject that has an NSColor* that is part of its data model. Because this color is actually a computed value that we want to cache,