Re: drawRect: called twice for NSView subclass.

2008-04-20 Thread William Hunt
On Apr 19, 2008, at 6:28 PM, Scott Thompson wrote: On Apr 19, 2008, at 7:15 PM, William Hunt wrote: Essentially I have a window with a custom view atop a button. What happens at each refresh, however, is that the custom view's drawRect: is called twice. First it is called with the

drawRect: called twice for NSView subclass.

2008-04-19 Thread William Hunt
Ok, it's been a while since I've bugged you guys, so I thought I'd get back into the fold. Note that I'm very new to graphics programming in general, and even more so for Cocoa. So be prepared for an easy fix! Anyway, the problem I have is this. +--+ |++| |

Re: Core Data - Cascading Not Working? (William Hunt)

2008-03-12 Thread William Hunt
r, since nRooms is still 1! } -- Wil Hunt "Life is the art of drawing sufficient conclusions from insufficient premises." -- Samuel Butler On Mar 12, 2008, at 7:13 PM, [EMAIL PROTECTED] wrote: Core Data - Cascading Not Working? (William Hunt) __

Core Data - Cascading Not Working?

2008-03-12 Thread William Hunt
Hello, again! Ok, my new problem deals with a very simple object graph that isn't propagating deletes as I expect. Here's the simplified setup: Entity: Map has a to-many relationship "rooms" to entity Room -- delete rule Cascade Entity: Room has a to-one relationship "map" to entity Map --

Re: NSBundle wierdness in OCUnit target:

2008-03-10 Thread William Hunt
On Mar 10, 2008, at 6:29 PM, Chris Hanson wrote: On Mar 10, 2008, at 4:44 PM, William Hunt wrote: Well, I think I've traced the weirdness I was previously having with the model down to the following... Please don't start a new thread when the existing one will do just fine.

NSBundle wierdness in OCUnit target:

2008-03-10 Thread William Hunt
Well, I think I've traced the weirdness I was previously having with the model down to the following... When I call: NSLog( @"bundlePath: %@", [[NSBundle mainBundle] bundlePath] ); I get: 2008-03-10 16:41:18.565 otest[3819:80f] bundlePath: /Developer/Tools This is clearly not correct. (I g

Re: Using Core Data with OCUnit

2008-03-10 Thread William Hunt
On Mar 10, 2008, at 11:19 AM, Chris Hanson wrote: - (NSManagedObjectModel *)managedObjectModel { if (_managedObjectModel == nil) { NSString *modelPath = [[NSBundle mainBundle] pathForResource:@"MyModel" ofType:@"mom"]; NSURL *modelURL = [NSURL fileURLWithPath:modelPath isD

Using Core Data with OCUnit

2008-03-10 Thread William Hunt
Hey all, I'm having a bit of trouble getting my Core Data NSManagedObjectModel to load from within my unit tests. The code I'm using to load the model (and context) is in my application code, not in my unit test; but I do call it from my test class's setUp() method. The strange