Suppressing autocomplete on space

2010-03-17 Thread Daniel Thorpe
Hello everyone, I know this has briefly been asked before, but the answer provided (just subclass the field editor), isn't really very cocoaish, and the docs are a bit lacking on this, so I'm asking again... Firstly, the problem... My app has a few places where the user searches for a

Creating a custom hierarchical list view

2009-04-30 Thread Daniel Thorpe
Hi everyone, I'm wondering if anyone can put me on the right path to create the following custom view... I'm trying to write a new view, to displaying hierarchical data which only uses one column. To navigate though the hierarchy, double clicking an item in the list loads that items

Update an existing Core Data store when the model changes?

2009-02-04 Thread Daniel Thorpe
Hello everyone. I'm currently developing a Core Data based app, which stores the results of some (relatively) computational intensive calculations as object attributes. While Core Data is great, it really annoys me that I have to trash my current persistent store whenever I make a change

QTMovie problem, thread-safety issue?

2008-10-09 Thread Daniel Thorpe
Hi everyone, I'm trying to access metadata from audio files (m4a files encoded using aac in iTunes) using the Quicktime QTMetaDataRef class. So, to do this I first need to get a QTMovie instance, hence I'm calling this bit of code: NSLog(@processing %@, fullpath); if([QTMovie

Re: How to manage/embed Covert Art from Mp3 Files with Cocoa App?

2008-06-23 Thread Daniel Thorpe
Hello everyone, I raised this problem on the list in May, although I was unable to follow up in timely fashion. I've since had time to look at it again, and I see some more people have asked about adding artwork to iTunes. As Jens suggests, an ID3 framework

Cropping an NSBitmapImageRep to a given NSRect?

2008-04-21 Thread Daniel Thorpe
Hello everyone, I can't seem to get this to work, yet it seems like it should be so easy. I have an NSBitmapImageRep, and I want to crop it to a given NSRect. The code I've attempted so far is this: // Create an NSImage for the current image rep NSImage *source = [[NSImage

Re: Cropping an NSBitmapImageRep to a given NSRect?

2008-04-21 Thread Daniel Thorpe
, at 10:23 pm, Daniel Thorpe wrote: Thanks Graham, I've just tried NSCompositeCopy, still doesn't work, no change... One thing that I've noticed though, is that the source is a grayscale image, but the image that I'm creating is RGB. Should I perhaps be creating a new bitmap image rep

Re: Cropping an NSBitmapImageRep to a given NSRect? [Solved]

2008-04-21 Thread Daniel Thorpe
a bearing on your problem but the simpler the code, the easier to debug :) Having different colourspaces shouldn't matter - the drawing operation will convert the image as necessary. G. On 21 Apr 2008, at 10:23 pm, Daniel Thorpe wrote: Thanks Graham, I've just tried NSCompositeCopy, still

Re: How to store NSRect as Core Data attribute?

2008-04-03 Thread Daniel Thorpe
Thanks for the feedback on this. I have gone with using a ...AsString attribute and using NSRectFromString. Seems to work okay, although I've got no idea if it's the most efficient method. I think Core Data seems a little limited in that you can't store an NSValue object as an attribute,

How to store NSRect as Core Data attribute?

2008-04-02 Thread Daniel Thorpe
Hello everyone, I'm trying to get to grips with non-standard persistent attributes in Core Data. I've read through the docs I can find (http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdNSAttributes.html ) but I'm still having some issues storing an NSRect in an

Re: Core Data and NSOperation

2008-03-30 Thread Daniel Thorpe
! Cheers Dan On 29 Mar 2008, at 08:58, Quincey Morris wrote: On Mar 28, 2008, at 22:56, Daniel Thorpe wrote: Oooh, that might work... But how do you assign independent operations using NSInvocationOperation objects? I don't understand the question. Each NSInvocationOperation represents

Core Data and NSOperation

2008-03-28 Thread Daniel Thorpe
Hello everyone, I'm a bit of a Core Data newbie, so any thoughts on this would be much appreciated... I have some objects, where each performs calculations, so I've subclassed NSOperation so that I can configure their dependencies and execute them on an NSOperationQueue. I want to store

Re: Core Data and NSOperation

2008-03-28 Thread Daniel Thorpe
Oooh, that might work... But how do you assign independent operations using NSInvocationOperation objects? On 28 Mar 2008, at 19:49, Quincey Morris wrote: On Mar 28, 2008, at 12:09, Daniel Thorpe wrote: I want to store the objects using Core Data, but have come up with a possible

encoding objects containing NSData ivars using NSKeyedArchiver

2008-03-12 Thread Daniel Thorpe
Hello everyone! I'm trying to archive an object using NSKeyedArchiver. The object is question has quite a complex structure, and one of it's instance variables is an NSMutableData. I've tried using [coder encodeObject:result forKey:@TchebichefMoment_momentData]; which doesn't seem to do