Re: Encode a 'Class' type using NSValue

2010-05-14 Thread Billy Flatman
Hi Quincey, Thanks for you help. I am trying to pass the class reference around for drag and drop, I think i'll try your idea of converting the pointer to a number, Cheers, Billy. On 14 May 2010, at 10:34, Quincey Morris wrote: > On May 14, 2010, at 02:13, Billy Flatman wrote: &

Encode a 'Class' type using NSValue

2010-05-14 Thread Billy Flatman
r encodeObject:value forKey:@"Class"]; } - (id) initWithCoder: (NSCoder *) decoder { [((NSValue*)[decoder decodeObjectForKey:@"Class"]) getValue:persistentObjectClass]; return self; } @end Any help greatly appreciated. Cheers, Billy Flatman b.flat...@googlemail.com

Core Data and Inheritance

2010-04-28 Thread Billy Flatman
blem is the index counts for Animal and Fish won't be the same if a Mammal is added. Is it possible to do this using bindings in interface builder? Sorry if this isn't very clear. Cheers, Billy Flatman b.flat...@googlemail.com ___ Coco

Re: Can't drag a custom data object.

2010-04-27 Thread Billy Flatman
n Apr 26, 2010, at 5:58 AM, Billy Flatman wrote: > >> I'm trying to put a custom object into past board in order to perform a drag >> operation. > > You can’t do that, for the same reason you can’t directly write a custom > object to a file. The pasteboard basically st

Can't drag a custom data object.

2010-04-26 Thread Billy Flatman
ng for my application until I logout). [pboard setData:[items objectAtIndex:0] forType:kOutlineViewGroupType]; return YES; } Any help greatly appreciated. Cheers, Billy Flatman b.flat...@googlemail.com ___ Cocoa-dev mailing list (Coco

Re: capture console output

2010-04-22 Thread Billy Flatman
uot;]; >[sqliteTask setArguments: [NSArray arrayWithObjects: >fullPathToDatabase, @".tables", nil]]; >[sqliteTask setStandardOutput: readPipe]; >[sqliteTask launch]; > >NSLog(@"sqlite wisdom: %@", [[[NSString alloc] initWithData: >

capture console output

2010-04-22 Thread Billy Flatman
rom the returned file. I know there are other ways of getting the sqlite information, but I just want to know how to read outputs from console, for my own interest. Cheers, Billy Flatman b.flat...@googlemail.com ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Data managment

2010-04-12 Thread Billy Flatman
__ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> Please do not post admin requests or moderator comments to the list. >> Contact the moderators at cocoa-dev-admins(at)lists.apple.com >> >&

Data managment

2010-04-12 Thread Billy Flatman
g an SQLite database into my application, but wasn't sure if I could use core data some how. Thanks Billy Flatman b.flat...@googlemail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

EXC_BAD_ACCESS

2010-03-11 Thread Billy Flatman
. Any help would be greatly appreciated. Billy Flatman b.flat...@googlemail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)l

NSOutlineView style issue.

2010-03-05 Thread Billy Flatman
Hi All, I need to remove the style effect on the parent nodes of the NSOutlineView, as show on the link below. http://www.flickr.com/photos/47616...@n08/4408708386 I don't seem to be able to find any options in interface designer. Any help greatly appreciated. Billy Flatman b

Re: NSBezierPath EXC_BAD_ACCESS issues.

2010-03-03 Thread Billy Flatman
#x27;t be named > set... as it's not setting anything. Call it initialiseBezierPath > for example. > > > --Graham > > > > On 03/03/2010, at 11:34 PM, Billy Flatman wrote: > >> Hi all, >> >> I have a shape class containing an >> &

NSBezierPath EXC_BAD_ACCESS issues.

2010-03-03 Thread Billy Flatman
Hi all, I have a shape class containing an attribute: NSBezierPath *path; initialisation: path = [[NSBezierPath alloc] init]; [self setBezierPath]; setBezierPath: path = [NSBezierPath bezierPath]; then add the paths and close path. paint: [path setLineWidth: 1]; [path fill]; It all worked w

Re: Embedding Custom NSView in NSScroller having strange effect on drawRect calls.

2010-02-28 Thread Billy Flatman
0, at 06:01, Michael Ash wrote: > On Thu, Feb 25, 2010 at 3:00 AM, Billy Flatman > wrote: >>>>> Hi all, >>>>> >>>>> I've written a custom view and done some optimisation of the drawing >>>>> calls so only the exact areas t

Embedding Custom NSView in NSScroller having strange effect on drawRect calls.

2010-02-25 Thread Billy Flatman
>>> Hi all, >>> >>> I've written a custom view and done some optimisation of the drawing calls >>> so only the exact areas that need redrawing are passed to the >>> 'setNeedsDisplayInRect' function. >>> >>> All was working well, until I embedded my view into an NSScroller. >>> >>> Since then m