Problems with NSCell setObjectValue

2010-08-08 Thread Hrishikesh Murukkathampoondi
Hi I subclassed NSCell to return a custom cell value for a NSTableView. Within the function - (NSCell *)tableView:(NSTableView *)tableView dataCellForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex I set the objectValue for the MyCell object (subclass of NSCell) using setObj

Re: Problems with NSCell setObjectValue

2010-08-21 Thread Hrishikesh Murukkathampoondi
>The 'dataCellForTableColumn:...' delegate method is intended to return a data >cell for the >table column to use>, but *not* to configure the cell value for >the specific row it's going >to represent. Remember that the object val>ue >comes from the data source object, not the del>egate object,

NAProgressIndicator and key value compliance

2010-09-26 Thread Hrishikesh Murukkathampoondi
Is NSProgressIndicator not key-value compliant? I am trying to bind he progress indicator to a value by doing the following: [pi bind:@"progress" toObject:dls withKeyPath:@"progVar" options:nil]; Where pi is a NSProgressIndicator* The object dls is my own and it has accessor methods set for

Re: NAProgressIndicator and key value compliance

2010-09-26 Thread Hrishikesh Murukkathampoondi
ogress". > > See the docs for more info: > https://developer.apple.com/library/mac/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSProgressIndicator.html > > Dave > > Sent from my iPhone > > On Sep 26, 2010, at 8:18 AM, Hrishikesh Murukkathampoondi

NSOutline and NSTreeController using bindings

2010-10-10 Thread Hrishikesh Murukkathampoondi
I am trying to understand how NSOutlineView and NSTreeController can be used in conjunction (with bindings). In most examples the NSTreeController's "Content Array" binding is pointed to a mutable array that has a specific format (like below). [theList addObject:[NSDictionary dictionaryWithObje

Re: NSOutline and NSTreeController using bindings

2010-10-12 Thread Hrishikesh Murukkathampoondi
gards > > > > On 10 Oct 2010, at 19:55, Hrishikesh Murukkathampoondi wrote: >> >> NSOutlineView bindings - >> 1. "Content" bound to NSTreeController's "arrangedObjects" >> 2. "Selection Index Paths: to NSTreeController'

Re: NSOutline and NSTreeController using bindings

2010-10-12 Thread Hrishikesh Murukkathampoondi
ave my NSOutlineView showing me the text stored in my data root tree. But cant explain the above behavior. Thanks Hrishi On 12-Oct-2010, at 6:59 PM, Hrishikesh Murukkathampoondi wrote: > Thanks for the response. I am still having a little trouble. Here is what I > have done. I have set th

Re: NSOutline and NSTreeController using bindings

2010-10-15 Thread Hrishikesh Murukkathampoondi
; and "trees." (NSArrayController and NSTreeController use the terms > they do because they're about the structure of the data presented, not the > view; you can bind either an NSOutlineView or an NSBrowser to an > NSTreeController, for example.) Ideally I'd nam

Re: NSOutline and NSTreeController using bindings

2010-10-15 Thread Hrishikesh Murukkathampoondi
perty when it is modified. Note that it's about > modifying the property, not the array behind it. > > -- Chris > > On Oct 15, 2010, at 3:05 AM, Hrishikesh Murukkathampoondi wrote: > >> Thank you for the suggestion. I changed the code to use KVC like you >

Loading a Nib file

2010-10-16 Thread Hrishikesh Murukkathampoondi
I am trying to learn how to open a second window in an Application (Mac OS X, not iOS). I have created a separate Nib file for loading the second window. I have a couple of questions Q1. The "Resource Programming Guide" says the following "The NSWindowController class also provides automatic

Custom table view cell

2010-11-23 Thread Hrishikesh Murukkathampoondi
I am having trouble creating and using a custom table view cell. I added a new cocoa obj-c file MyCell. The MyCell class derives from NSCell and does its own drawing (drawInteriorWithFrame:inView:). I get the following error message at run time. --- Error invoking selector openAccountWindow on

Problem with custom NSTextFieldCell

2010-11-28 Thread Hrishikesh Murukkathampoondi
I am trying to use a custom NSTextFieldCell (MyCell) in my NSTableView. The custom MyCell displays two text values instead of one. When ever the row is clicked or double clicked the dealloc method of the NSTextFieldCell is called. Why is the NSTextFieldCell being dealloced when the entry is se

Problems implementing custom table view cell

2010-11-30 Thread Hrishikesh Murukkathampoondi
Hello I have the following issues when implementing a custom cell for my table view. Problem 1: My custom cell is called MyCell. It inherits from NSCell. I have set the cell in the table view to MyCell in IB. I have implemented the following method to draw MyCell - (void)drawInteriorWithFrame:

Setting the date of a UIDatePicker

2010-12-27 Thread Hrishikesh Murukkathampoondi
I am trying to set the date of a UIDatePicker in my view. I have tried using both the following in - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil of my view controller but it does not work. The date is still set to what ever is specified in IB (and I am unable

Re: Setting the date of a UIDatePicker [Solved]

2010-12-27 Thread Hrishikesh Murukkathampoondi
Setting it in viewDidLoad: works. I guess setting properties of any outlet should be done in viewDidLoad My earlier init method was called but maybe the outlet was not yet hooked up then. Hrishi On 27-Dec-2010, at 8:16 PM, Hrishikesh Murukkathampoondi wrote: > I am trying to set the date

UITableViewCell and accessoryView

2011-01-26 Thread Hrishikesh Murukkathampoondi
In a UITableView when a cell is swiped a delete button appears and allows you to delete the row. I want to change this behavior by putting up a different button "Complete" that will perform a different action. For this I created a UISwipeGestureRecognizer and added it to the UITableViewCell.

Re: UITableViewCell and accessoryView

2011-01-26 Thread Hrishikesh Murukkathampoondi
. Is there a better way to do this. Hrishi On 26-Jan-2011, at 8:51 PM, Luke Hiesterman wrote: > > > On Jan 26, 2011, at 6:17 AM, Hrishikesh Murukkathampoondi > wrote: > >> >> >> In a UITableView when a cell is swiped a delete button appears and allows &g