Re: cocoa-dev digest, Vol 2 #4257 - 12 msgs
Re: cocoa-dev digest, Vol 2 #4257 - 12 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #4257 - 12 msgs
- From: Lorenzo <email@hidden>
- Date: Thu, 27 May 2004 23:47:10 +0200
Hi Mark,
yes my answer was so detailed that the list rejected my email. Look.
> Message body is too big: 9221 bytes but there's a limit of 8 KB
So you got my email but the list didn't.
Anyway, I don't use the NSArrayController because it's available only for
MacOS X 10.3 and later. So since I need to guarantee compatibility with
10.2.6 I avoid this class. The code I sent you works well. I have been using
it for two years without "any" problem.
You can simply add a method to the TableViewManager in order to set your
internal contentArray pointer to an external array. If you do so, you don't
have to initiate the NSMutableArray contentArray. Only declare it in the
TableViewManager.h header file.
- (void)setContentArray:(NSMutableArray*)theArray
{
contentArray = theArray;
// if the caller already retains the array,
// you don't have to retain it here.
// contentArray it's now only a pointer to an array
// initiated elsewhere.
// to refresh the tableView list
[theList reloadData];
}
Sometimes I have no time to read all the message in the list.
So, when you write to the list and you want to let me know too,
include my email address in the CC field.
Best Regards
--
Lorenzo
email: email@hidden
>
From: email@hidden
>
Reply-To: email@hidden
>
Date: Thu, 27 May 2004 08:49:32 -0700
>
To: email@hidden
>
Subject: cocoa-dev digest, Vol 2 #4257 - 12 msgs
>
>
Message: 9
>
From: Mark Stockwell <email@hidden>
>
Subject: Re: Drag and stupid Drop in NSTableView
>
Date: Thu, 27 May 2004 09:22:16 -0500
>
To: email@hidden
>
>
Lorenzo,
>
>
Wow! What a detailed answer!
>
>
I'll give it a try.
>
>
Right now I've got an NSArrayController and I've bound that to File's
>
Owner (MyDocument) and given it my itemArray ( an NSMutableArray) as
>
model key path.
>
>
So the data that feeds my table lives in MyDocument and somehow the
>
NSArrayController has been taking care of things for me without my
>
needing to create a numberOfRowsInTableView or an
>
objectValueForTableColumn method.
>
>
I'm assuming I'll need to move that array to my new TableViewManager?
>
And that I'll no longer need my NSArrayController?
>
>
Is using key value coding with an NSArrayController not compatible with
>
dragging and dropping in NSTableView?
>
>
Thanks,
>
>
Mark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.