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
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.
+--+
|++|
|
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)
__
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 --
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.
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
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
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