Determine if a document is "new"

2010-05-23 Thread Bryan Zarnett
I have a Document-based core data application ( from template). I would like to determine in "MyDocument" if the file is new -- has no content so that I can populate a few of the models with required default data. I was wondering what is the base way to approach this? I didn't see any particula

Re: View sizing issue when using "disclosure view"

2009-12-02 Thread Bryan Zarnett
Thanks Ron. I woke up with that as an idea this morning but was hoping for a "you forgot to click this" answer. I did what you suggested and it works great. Thanks, Bryan On 1-Dec-09, at 11:50 PM, Ron Fleckner wrote: On 02/12/2009, at 2:14 PM, Bryan Zarnett wrote: I'm

View sizing issue when using "disclosure view"

2009-12-01 Thread Bryan Zarnett
I'm having trouble making sure I have the correct springs and struts for my view. At the top of the view I have a Split View that when the user resizes the window in height or length, the split view should appropriately resize. At the bottom I have a disclosure dialog which shows or hides

Re: Controller does not contain associated window after initialization

2009-12-01 Thread Bryan Zarnett
Thanks Graham On 1-Dec-09, at 9:48 AM, Graham Cox wrote: On 02/12/2009, at 1:31 AM, Bryan Zarnett wrote: I am creating an application with multiple NIB files. I created an empty NIB, put down a new window and added an Object for the controller. I wired the controller object to the

Controller does not contain associated window after initialization

2009-12-01 Thread Bryan Zarnett
I am creating an application with multiple NIB files. I created an empty NIB, put down a new window and added an Object for the controller. I wired the controller object to the window and the nib as well as a few actions. In my controller class I have added the following: if (self = [sup

Re: Change the text color in an NSTableView based on the data in the row

2009-09-07 Thread Bryan Zarnett
Thanks Graham, I did the following and it worked fine: NSNumber *isClosed = [[[activityController arrangedObjects] objectAtIndex: row] valueForKey: @"isClosed"]; Cheers! On 7-Sep-09, at 12:34 AM, Graham Cox wrote: On 07/09/2009, at 9:40 AM, Bryan Zarnett wrote: I would l

Change the text color in an NSTableView based on the data in the row

2009-09-06 Thread Bryan Zarnett
I would like to set the text color of the cell in an NSTableView based on a particular set of data in the table of in the associated array controller. I currently have the basic code for the coloring changing working right now in "willDisplayCell". What I am not sure about is how to (1) ret