Xcode has no rule to process .xib files in one of my projects

2008-02-23 Thread Arne Scheffler
Hi, I have one project where I added a .xib file and Xcode sees it as "sourcecode.xib" filetype. When I build this project I get the following output from the compiler: warning: no rule to process file '$(PROJECT_DIR)/../../frame/resource/ menubar.xib' of type sourcecode.xib for architectur

NSButton Subclass - 2 states plus tracking image

2008-02-23 Thread Trygve Inda
I need an NSButton with 5 different graphics and two states: State 0 (enabled & disabled graphics) State 1 (enabled & disabled graphics) Pressed/Tracking state I was thinking to subclass NSButton and in IB use "Momentary Change" so that I can set the alt image to always be my Pressed/Tracking s

POSIX thread in cocoa project

2008-02-23 Thread Luca Ciciriello
Hi All. I've added to a cocoa project a .cpp file. In this file I've implemented a multithreading system using POSIX. Now, from my cocoa app's window I can use the functionality of the new added cpp file (using a .mm file as interface). The problem is that I'm able to create a detached thread w

Asyncronously copying multiple files.

2008-02-23 Thread Scott Andrew
I have a question I have written a wrapper class around FSPathCopyObject. I have a question about FSCopyObject however. I have several files i want to copy one after another.. The only way i seemed to have found to do this (and maybe its the right way) is to create a new fileOperationRef fo

Re: POSIX thread in cocoa project

2008-02-23 Thread A.M.
On Feb 23, 2008, at 11:17 AM, Luca Ciciriello wrote: Hi All. I've added to a cocoa project a .cpp file. In this file I've implemented a multithreading system using POSIX. Now, from my cocoa app's window I can use the functionality of the new added cpp file (using a .mm file as interface

Re: NSButton Subclass - 2 states plus tracking image

2008-02-23 Thread Ken Ferry
Hi Trygve, I don't you should override -value or anything like that. NSOnState and NSOffState should do fine. You should draw your pressed art if and only if -isHighlighted is true. It's probably appropriate to subclass NSButtonCell for this and draw what you like. In IB3, you can select t

NSPersistentDocument loading into NSManagedObjectContext

2008-02-23 Thread Andrew Beck
Hi, During init time (awakeFromNib), I build a list of objects into a mutable dictionary, keyed by an [NSManagedObject objectID]. I load the objects up, then check to see if there are any NSManagedObjects in the managedObjectContext with the same name as the objects I load during init time. If the

Re: Unobserved Changes

2008-02-23 Thread Keary Suska
on 2/22/08 9:59 PM, [EMAIL PROTECTED] purportedly said: > Thanks for your help. > I created a stripped down project of the scenario. It can be downloaded > from: > http://www.neuromight.com/cocoa/ContainerTest.zip > > A couple of points of interest: > - The observations are created in the awa

Re: Map key codes to characters

2008-02-23 Thread Peter Edberg
Christian, The mapping from a sequence of key codes to a sequence of UniChars (UTF16 code units, for the modern APIs) can be complex and in general is a state machine in which the inputs include keycode, modifier state, dead key state, and physical keyboard ID, and the outputs are updated

Re: Unobserved Changes

2008-02-23 Thread mmalc crawford
On Feb 23, 2008, at 10:21 AM, Keary Suska wrote: Chris is correct, and I should have known better. I have never observed arrangedObjects, but I got the example from mmalc's bindings page: . Why he chose the sp

bind tableview to arraycontroller

2008-02-23 Thread Hans van der Meer
Step by step I try to master the kvc-kvo-bindings matter. Now I have: NSArrayController bound to an NSArray in a class in my program NSTableView bound to the NSArrayController as follows: columns of the table are bound to fields in the objects held by the array. The problem I am wr

Re: Private Methods

2008-02-23 Thread Jonathan Hess
On Feb 22, 2008, at 6:08 AM, Adam P Jenkins wrote: On Feb 22, 2008, at 6:48 AM, Rob Petrovec wrote: Lack of private methods is a serious flaw in Obj-C IMO. This is silly. Private is really just about as voluntary in C++ as it is in ObjC. If a user of your class wants to ignore your de

Re: NSOutlineView autosaving of expanded/collapsed state

2008-02-23 Thread Jonathan Dann
On 23 Feb 2008, at 01:58, Ralph Manns wrote: Hi, is there a solution on Leopard to implement the autosaving of expanded/collapsed state of an NSOutlineView (bound to Core Data via NSTreeController). I tried to implement outlineview:persistentObjectForItem; and outlineView:itemForPersisten

Re: NSButton Subclass - 2 states plus tracking image

2008-02-23 Thread Trygve Inda
> Hi Trygve, > > I don't you should override -value or anything like that. NSOnState > and NSOffState should do fine. > > You should draw your pressed art if and only if -isHighlighted is true. > > It's probably appropriate to subclass NSButtonCell for this and draw > what you like. In IB3, you

Re: Private Methods

2008-02-23 Thread Adam P Jenkins
On Feb 23, 2008, at 5:15 PM, Jonathan Hess wrote: On Feb 22, 2008, at 6:08 AM, Adam P Jenkins wrote: On Feb 22, 2008, at 6:48 AM, Rob Petrovec wrote: Lack of private methods is a serious flaw in Obj-C IMO. This is silly. Private is really just about as voluntary in C++ as it is in ObjC

Trying to contact Cathy Shive

2008-02-23 Thread John Musbach
Hello, I'm trying to get in contact with Cathy Shive. She expressed interest in the Moire cloning project I posted to this list and although I have tried following up with her multiple times about 11 days have passed since I've heard anything from her. Hope everything's ok... -- Best Regards, Jo

Re: bind tableview to arraycontroller

2008-02-23 Thread Adam Gerson
Your NSArray needs to be an array of KVC compliant objects. Is this the case? Do you have the NSTableColumn's value binding set to the controller key "arrangedObjects" and the model key path set to an attribute of your KVC class? You could use a CoraData object to do some of the heavy lifting for

invalid NSStrings?

2008-02-23 Thread James Pengra
Folks, I have a lot of trouble with string variables becoming "invalid" according to their value in the Debugger. If I set a string variable like NSString *str = [NSString stringWithString:string variable>] it seems OK initially but then when I try to use it later in the program it is in

Re: invalid NSStrings?

2008-02-23 Thread mmalc crawford
On Feb 23, 2008, at 5:15 PM, James Pengra wrote: I have a lot of trouble with string variables becoming "invalid" according to their value in the Debugger. If I set a string variable like NSString *str = [NSString stringWithString:] it seems OK initially but then when I try to use

trouble closing windows

2008-02-23 Thread Development
This is probably a noob question but I cannot seem to find the answer. I have an application which works with projects similar to golive or xcode or what have you. When documents are edited a flag is set. When the window is closed or the application is about to quit I get e generic you have

Re: synchronize the content of two arrays with binding

2008-02-23 Thread Mei Fang Liau
Hello Bill, thanks a lot for the suggestion! however, could you please give me a simple example? this is how I envision the program works: In my custom view (RingView) there are 16 toggle buttons, once any button in the ringview is triggered, it will inform AppController about the change. AppContr

NSimage NSImageInterpolationHigh-Low not working?

2008-02-23 Thread Jim McKinnon
I have read many of the posts on this, and I ended up using this code: NSSize theNewSize = {width*scaleFactor, height*scaleFactor}; NSImage *resizedImage = [[NSImage alloc] initWithSize: theNewSize]; [resizedImage lockFocus]; [NSGraphicsContext saveGraphicsState]; [[NSGraphics

disowning a bundle?

2008-02-23 Thread Jack Repenning
In my -(id)initWithContext:, I [NSBundle loadNibNamed:@"SCCommitUI" owner:self]. Among other things, this retains me a few times inside the bundle. When I'm done, I want "self" to go away, but it does not: the retain count never goest to zero (my dealloc is never called), because of those

Re: disowning a bundle?

2008-02-23 Thread Hamish Allan
On Sun, Feb 24, 2008 at 2:25 AM, Jack Repenning <[EMAIL PROTECTED]> wrote: > In my -(id)initWithContext:, I [NSBundle loadNibNamed:@"SCCommitUI" > owner:self]. Among other things, this retains me a few times inside > the bundle. When I'm done, I want "self" to go away, but it does not: > the

Re: trouble closing windows

2008-02-23 Thread Kyle Sluder
On Sat, Feb 23, 2008 at 8:45 PM, Development <[EMAIL PROTECTED]> wrote: > The unsaved > chages dialog comes up first, then it runs the notification. Can some > one point me the right way to trap this so it only runs my method? Implement -windowShouldClose: in your delegate. --Kyle Sluder _

Drag and Drop with Core Data bound NSTableViews almost works

2008-02-23 Thread Adam Gerson
I think I have this very close to working. My understanding is that for drag and drop to work I have to set some object as the NSTableView's data source even though technically the table columns are bound to an NSArrayController for data. In my data source object I have implemented the nessesery me

Re: Drag and Drop with Core Data bound NSTableViews - SOLVED

2008-02-23 Thread Adam Gerson
My Appologies. This is working now. Can't exactly explain how. I set the NSTableView's delegate outlet to my window controller and then it worked. Adam On 2/23/08, Adam Gerson <[EMAIL PROTECTED]> wrote: > I think I have this very close to working. My understanding is that > for drag and drop

Re: Drag and Drop with Core Data bound NSTableViews - SOLVED

2008-02-23 Thread Andrew Merenbach
Hi, Adam, I suggest, even if you have it working, that you examine mmalc's excellent "Bookmarks" example at . It was amazingly helpful to me, in particular, with regard to setting up an array controller as a data source for drag