Re: Just when I thought I understood bindings.

2008-10-09 Thread Tim Isted
Sorry, my bad for writing confusion and rubbish at 1:40am. I meant to talk about discussion as here: http://www.cocoabuilder.com/archive/message/cocoa/2005/5/27/137132 but see also the next messages Tim On 9 Oct 2008, at 06:36, Scott Anguish wrote: On 8-Oct-08, at 8:46 PM, Tim Isted wrote

Re: Just when I thought I understood bindings.

2008-10-08 Thread Tim Isted
Did you setup the bindings using Interface Builder or programatically? If programatically, they work in only one direction so you need to call [object1 bind:@"value" toObject:object2 withKeyPath:@"whateverPathForKeyIs" options:nil]; and [object2 bind:@"value" toObject:object1 withKeyPath:

Re: submit textfield without pressing ener

2008-09-05 Thread Tim Isted
Depending on how you're implementing your login dialog, if you have a method that is called when the ok button is clicked and you have IBOutlets for the text field or the login dialog itself, in that method you can either: a) call [theTextField commitEditing]; on the text field or b) cal

Re: Core Data Bindings with Table View

2008-08-25 Thread Tim Isted
You can make use here of the 'Content Set' binding on an NSArrayController. So, bind your Files table view column to Files.arrangedObjects.path and then set the Content Set of the Files NSArrayController to point to the Apps array controller selection.files. If you have Add/Remove buttons

Re: Core Data, xcdatamodel

2008-08-16 Thread Tim Isted
I'm assuming that you are using NSArrayControllers in your Interface Builder nib/xib file... Bind the Content Set for the rgb controller to the collection controller's 'selection' with a model key path of whatever your relationship is called (ie the to-many relationship in the collection

Re: Core Data merging

2008-08-15 Thread Tim Isted
On 15 Aug 2008, at 00:19, Vadim Lozko wrote: I'm having a problem trying to upgrade an existing store of a Core Data database to a newer model that simply has 1 additional attribute property in an entity. This is not a document based app. Also, not sure if this is significant, but the xcdat

Re: Help on Menu Item

2008-07-24 Thread Tim Isted
Apple docs on Status Bars are at: There's a MacTech article with walk-thru information here: Tim On 24 Jul 2008, at 10:46, Adil Saleem w

Re: Obtaining the number of characters in a string

2008-07-20 Thread Tim Isted
Try using [text2 setStringValue:[NSString stringWithFormat:@"%i", [[textField1 stringValue] length]]]; Using setIntValue on a text field won't set the text field's stringValue to be a string from that int. Tim On 20 Jul 2008, at 12:56, Phil Faber wrote: Still struggling with document

Re: how to eliminate an annoying issue of the multi-document cocoa application?

2008-07-18 Thread Tim Isted
In your application delegate object, simply implement: - (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender { return NO; } This will prevent the new document automatically being displayed. Tim On 18 Jul 2008, at 16:39, Cloud Strife wrote: Greetings everyone. I am new to