FROM : Todd Ransom
DATE : Fri Jul 21 19:29:45 2006
For the archives, you can disable sort by subclassing
NSArrayController and overriding sortDescriptors like this:
- (NSArray *)sortDescriptors
{
return [NSArray array];
}
Todd Ransom
Return Self Software
http://returnself.com
On Jul 10, 2006, at 10:24 AM, Todd Ransom wrote:
> I have a table view in my application that shows an ordered list of
> items. Each item in the list has a to-one relationship with another
> item in my document, specified by a popup button in the table.
> Because order is important I would like to disable sorting, which
> doesn't make sense for this data. To do this I tried changing the
> tableview's bindings and leaving out the sortDescriptors bindings
> as described by mmalc on his bindings page. I also tried unbinding
> the sortDescriptors as described here:
>
> http://www.cocoabuilder.com/archive/message/cocoa/2005/9/6/145803
>
> The problem is every time I disable sorting on this table view the
> objects that define to-one relationships are being sent an
> isEqualToString: message, which of course throws an exception. I
> see this same problem described in the URL above but no solution.
> Is this a bug? Is there any workaround that will allow me to
> disable sorting on a bound table that uses a popup button to
> specify a relationship?
>
> thanks,
> Todd Ransom
> Return Self Software
> http://returnself.com
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Fri Jul 21 19:29:45 2006
For the archives, you can disable sort by subclassing
NSArrayController and overriding sortDescriptors like this:
- (NSArray *)sortDescriptors
{
return [NSArray array];
}
Todd Ransom
Return Self Software
http://returnself.com
On Jul 10, 2006, at 10:24 AM, Todd Ransom wrote:
> I have a table view in my application that shows an ordered list of
> items. Each item in the list has a to-one relationship with another
> item in my document, specified by a popup button in the table.
> Because order is important I would like to disable sorting, which
> doesn't make sense for this data. To do this I tried changing the
> tableview's bindings and leaving out the sortDescriptors bindings
> as described by mmalc on his bindings page. I also tried unbinding
> the sortDescriptors as described here:
>
> http://www.cocoabuilder.com/archive/message/cocoa/2005/9/6/145803
>
> The problem is every time I disable sorting on this table view the
> objects that define to-one relationships are being sent an
> isEqualToString: message, which of course throws an exception. I
> see this same problem described in the URL above but no solution.
> Is this a bug? Is there any workaround that will allow me to
> disable sorting on a bound table that uses a popup button to
> specify a relationship?
>
> thanks,
> Todd Ransom
> Return Self Software
> http://returnself.com
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Todd Ransom | Jul 10, 18:24 | |
| Todd Ransom | Jul 21, 19:29 |






Cocoa mail archive

