Re: Catch exception in NSArrayController

2009-09-17 Thread Konrad Windszus
9/17/09 1:26 PM, Konrad Windszus said: I have a classical binding usecase: A NSArrayController is used for displaying the columns of a NSTableView. The columns itself therefore use the arrangedObject method of the NSArrayController. In the get methods of the model itself (which normally retu

Fwd: [SOLVED] NSTreeController setSelectionIndexPath depends on sort order

2009-09-17 Thread Konrad Windszus
others with the same problem. Konrad Am 25.08.2009 um 19:45 schrieb Konrad Windszus: I have a NSTreeController which is connected to a NSOutlineView. I wish to have links to specific entries in the NSTreeController. With these links I want to select those items. I therefore use the

Catch exception in NSArrayController

2009-09-17 Thread Konrad Windszus
I have a classical binding usecase: A NSArrayController is used for displaying the columns of a NSTableView. The columns itself therefore use the arrangedObject method of the NSArrayController. In the get methods of the model itself (which normally return an NSString* which should be displa

NSTreeController setSelectionIndexPath depends on sort order

2009-08-25 Thread Konrad Windszus
I have a NSTreeController which is connected to a NSOutlineView. I wish to have links to specific entries in the NSTreeController. With these links I want to select those items. I therefore use the NSIndexPath. Unfortunately the NSIndexPath becomes invalid if the sort order is changed by th

Re: NSError in NSDocument readFromURL

2009-07-13 Thread Konrad Windszus
Did someone already open an documentation bug at apple regarding this issue? "If not successful, the method returns nil after setting outError to point to an NSError that encapsulates the reason why the document could not be instantiated." Operative word being "an" NSError. Funny enough

Re: NSError in NSDocument readFromURL

2009-07-13 Thread Konrad Windszus
If I set an NSError in the method readFromURL of my NSDocument, I am not able to overwrite the NSLocalizedDescriptionKey. ... Unfortunately only the strings of the keys NSLocalizedFailureReasonErrorKey and NSLocalizedRecoverySuggestionErrorKey are displayed together with a standard err

NSError in NSDocument readFromURL

2009-07-12 Thread Konrad Windszus
If I set an NSError in the method readFromURL of my NSDocument, I am not able to overwrite the NSLocalizedDescriptionKey. If have the following code in that method: - (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError { NSArray *objArray = [NSArray