Re: Adding to-many objects programmatically

2010-01-16 Thread Roland King
Cast to the actual type before calling the method. Instead of [ managedObject method1 ] do [ (Employee*)managedObject method1 ] On 16-Jan-2010, at 14:57, Jenny M safflo...@gmail.com wrote: When I tried to use the getter/setter, I get a build warning that says the NSManagedObject may not

Re: NSFileHandle weirdness on 10.5 ...

2010-01-16 Thread Ken Thomases
On Jan 12, 2010, at 12:46 PM, Heizer, Charles wrote: I'm hoping someone can help me out here. I'm trying to use IPC (Unix domain socket AF_UNIX) to pass data between two applications. I have a console application which is sending data to the socket path and a Cocoa GUI app which is

Re: Confused about setting selection in NSBrowser

2010-01-16 Thread Chris Idou
Yes, I'm doing 10.6. But I don't see anything about item based in NSBrowser.h, nor anything else that looks enlightening. From: Corbin Dunn corb...@apple.com To: Keary Suska cocoa-...@esoteritech.com Cc: Chris Idou idou...@yahoo.com;

Re: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !

2010-01-16 Thread Ken Thomases
What others have suggested are good, but I also wanted to point out something: On Jan 13, 2010, at 9:30 AM, rohan a wrote: Using the new NSURL methods available with Cocoa on Mac OS X 10.6, I am trying to create an alias file to a certain file. However, this method requires a NSURL data type.

Re: Bindings Problem

2010-01-16 Thread Ken Thomases
In addition to what mmalc pointed you to, there are other red flags in your description: On Jan 14, 2010, at 5:11 PM, Carter R. Harrison wrote: My model is an NSMutableSet that contains NSMutableDictionaries. I think this is asking for trouble. A set of mutable dictionaries doesn't make

Re: If Array Controller is empty, how to populate pop-up list?

2010-01-16 Thread Ken Thomases
On Jan 14, 2010, at 4:09 PM, Jenny M wrote: I have an Array Controller whose objects are displayed in an NSPopUpButton. However, what can I do if the array controller becomes empty? If I delete all the objects, or if the window starts up with an empty array controller, I'd like for the

Re: needing help w/ asynchronous message problem, using YAMessageQueue

2010-01-16 Thread Ken Thomases
On Jan 15, 2010, at 10:04 PM, Shane wrote: I have a thread already where I use asynchronous messages to communicate (using YAMessageQueue). My main application thread sends messages to a task thread similar to the below line, but for some reason, when I'm sending from my task thread to the

NSTextField sendActionOn:

2010-01-16 Thread Brad Stone
I have an NSTextField and an NSDatePicker on a view. As soon as the user clicks into either on (and before they type anything) I want to send an action. I thought I'd use sendActionOn: but I can't get it to work. The best I can do for the NSTextField is bind an action and in, IB, in the

Re: NSTextField sendActionOn:

2010-01-16 Thread Matthew Lindfield Seager
On Sunday, January 17, 2010, Brad Stone cocoa-...@softraph.com wrote: The best I can do for the NSTextField is bind an action and in, IB, in the TextFieldAttributes set Action to Sent on End Editing  which sends the action after the first character is type.  I want the action sent as soon as

[iphone] Load time and Nav View Controller.

2010-01-16 Thread Philip Vallone
Hi, I have a Navigation Based iPhone Application. If I am going from one nav view to another it may take about 3 seconds to view the next view. This is because the the view loads a large xml file into a NSArray and then must render it. My question is, how can I display a

Re: [iphone] Load time and Nav View Controller.

2010-01-16 Thread Philip Vallone
Hmmm Figured it out. I needed to run the activity indicator on another thread [NSThread detachNewThreadSelector: @selector(showIndicator) toTarget:self withObject:nil]; Thanks, On Jan 16, 2010, at 3:46 PM, Philip Vallone wrote: Hi, I have a Navigation Based iPhone Application. If I

Re: [iphone] Load time and Nav View Controller.

2010-01-16 Thread Dave DeLong
Ack. You should never do UI stuff on secondary threads. What you should be doing is loading your large XML file on the second thread, and then once that thread is done, make the activity indicator disappear (on the main thread). Dave On Jan 16, 2010, at 2:00 PM, Philip Vallone wrote: Hmmm

Re: [iphone] Load time and Nav View Controller.

2010-01-16 Thread Philip Vallone
Thanks Dave. Great advise. I've made the change. Regards. Phil On Jan 16, 2010, at 4:02 PM, Dave DeLong wrote: Ack. You should never do UI stuff on secondary threads. What you should be doing is loading your large XML file on the second thread, and then once that thread is done, make

NSURLRequest and NSOperationQueue

2010-01-16 Thread Dave DeLong
Hi everyone, I'm building an object that communicates with a server. For various reasons, I'd like to queue up all the NSURLRequests in an NSOperationQueue so that I never have more than one connection open at a time. However, I'm running into a weird issue. If I create my NSURLRequest and

Re: Adding to-many objects programmatically

2010-01-16 Thread mmalc Crawford
On Jan 16, 2010, at 12:17 am, Roland King wrote: Cast to the actual type before calling the method. Instead of [ managedObject method1 ] do [ (Employee*)managedObject method1 ] No; the OP stated, I don't use custom classes, so this won't work. Follow the pattern described in the

Re: NSDatePicker 24 hour clock (Daniel Wambold)

2010-01-16 Thread Wilfried Bernard
Hi, I've read your post and in case you did not find a solution, this worked for me: The trick is, you need to subclass NSDatePicker first like: @interface TT24HourTimePicker : NSDatePicker {} @end Then put the formatter in a new init phase of the implementation, like (use what ever format you

Re: needing help w/ asynchronous message problem, using YAMessageQueue

2010-01-16 Thread Grant Christensen
Hi all, Somewhat new to cocoa (Mac even) development, and I have a UI layout question that I am hoping to get some opinions on. I have a single window application that contains both a toolbar and a bottom bar. The application periodically goes off and reads some data from a remote server.

Accessing Variables from Multiple NIBs

2010-01-16 Thread Jonathan Buys
Hello, I have an AppController that looks like this: AppController.h: #import Cocoa/Cocoa.h @class PostController; @interface AppController : NSObject { PostController *postController; NSString *theString; } - (IBAction)setString:(id)sender; - (IBAction)viewString:(id)sender;

Re: NSTextField sendActionOn:

2010-01-16 Thread Brad Stone
I tried that (textDidBeginEditing) but it fires only after the user hits a key to begin typing, not when they first enter the field (i.e. the action that makes the focus ring show up). I want to be notified as soon as the user clicks in the field to get the cursor in there. I was able to

How to show progress indicator for background job

2010-01-16 Thread Grant Christensen
Hi, apologies for having a wrong topic, replied instead of created a new message. On 16/01/2010, at 11:25 PM, Grant Christensen wrote: Hi all, Somewhat new to cocoa (Mac even) development, and I have a UI layout question that I am hoping to get some opinions on. I have a single window

Re: Clipping subview drawing to arbitrary path or image (iPhone)

2010-01-16 Thread David Duncan
On Jan 15, 2010, at 5:07 PM, Rick Mann wrote: Hmm. I tried some experiments with your suggestion, and seemed to be getting masking with the inverse of what I specified. So I looked at the docs for the mask property, and there's this note: iPhone OS Note: As a performance consideration,

Re: Accessing Variables from Multiple NIBs

2010-01-16 Thread Jon Buys
Well, before this goes any further, I'm going to go ahead and answer my own question here. The problem is that in the code below, I'm actually instantiating two AppController objects, one in each NIB. So, one AppController doesn't have any idea about the other AppController, and can't get to