Re: Display the elements of array in a tablview ?

2009-07-08 Thread I. Savant

On Jul 7, 2009, at 11:19 PM, Daniel DeCovnick wrote:

Point of order, you CAN use bindings in code, it's just far more  
convenient to do so in IB.



  Well, yes, but:


On Jul 7, 2009, at 1:59 PM, I. Savant wrote:

I assumed (s)he meant not bindings.


  I might be wrong, but that's how I took it. Sometimes you have to  
read between the language barrier and have a guess.


--
I.S.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Display the elements of array in a tablview ?

2009-07-07 Thread I. Savant

On Jul 7, 2009, at 10:43 AM, Bright wrote:

  There is an array with several elements in my application. And I  
have shown the elements in a tableview

using binding.
  But now I need to display the elements using code only. Could  
anyone help me? Which method should

I  use?



 You want to study NSTableDataSource:

http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/Tasks/UsingTableDataSource.html#//apple_ref/doc/uid/2117

 This is how things were done before Bindings. Read thoroughly.

--
I.S.



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Display the elements of array in a tablview ?

2009-07-07 Thread Jesse Armand
I'm not even familiar with Bindings, is it convenient to use ?

I did an intensive development with Cocoa starting with Cocoa Touch,
so I'm used to using the equivalent UITableViewDataSource to populate
table views.

Jesse Armand

(http://jessearmand.com)



On Tue, Jul 7, 2009 at 10:45 PM, I. Savantidiotsavant2...@gmail.com wrote:
 On Jul 7, 2009, at 10:43 AM, Bright wrote:

  There is an array with several elements in my application. And I have
 shown the elements in a tableview
 using binding.
  But now I need to display the elements using code only. Could anyone help
 me? Which method should
 I  use?


  You want to study NSTableDataSource:

 http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/Tasks/UsingTableDataSource.html#//apple_ref/doc/uid/2117

  This is how things were done before Bindings. Read thoroughly.

 --
 I.S.



 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/mnemonic.fx%40gmail.com

 This email sent to mnemonic...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Display the elements of array in a tablview ?

2009-07-07 Thread I. Savant

On Jul 7, 2009, at 4:48 PM, Jesse Armand wrote:


I'm not even familiar with Bindings, is it convenient to use ?



  Once you understand all of its prerequisites, it can be. The better  
question to ask is is it convenient to use in this particular  
scenario. The answer may be yes or no (perhaps emphatically).




I did an intensive development with Cocoa starting with Cocoa Touch,
so I'm used to using the equivalent UITableViewDataSource to populate
table views.


  My understanding is there are differences in how the two work (from  
one platform to the other) but they are basically the same concept. I  
suggested it because Bright specifically mentioned (s)he used  
bindings but wants an approach using code only. I assumed (s)he  
meant not bindings. The only other way is the table datasource  
protocol.


--
I.S.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Display the elements of array in a tablview ?

2009-07-07 Thread Bright
Now , I see.  Thank you for everyone's help.
Binding is useful, but sometimes maybe it is not suited to your need.
Bright





On Jul 7, 2009, at 4:48 PM, Jesse Armand wrote:

 I'm not even familiar with Bindings, is it convenient to use ?


   Once you understand all of its prerequisites, it can be. The better  
question to ask is is it convenient to use in this particular  
scenario. The answer may be yes or no (perhaps emphatically).


 I did an intensive development with Cocoa starting with Cocoa Touch,
 so I'm used to using the equivalent UITableViewDataSource to populate
 table views.

   My understanding is there are differences in how the two work (from  
one platform to the other) but they are basically the same concept. I  
suggested it because Bright specifically mentioned (s)he used  
bindings but wants an approach using code only. I assumed (s)he  
meant not bindings. The only other way is the table datasource  
protocol.

--
I.S.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/ldl0313036%40163.com

This email sent to ldl0313...@163.com
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Display the elements of array in a tablview ?

2009-07-07 Thread Daniel DeCovnick
Point of order, you CAN use bindings in code, it's just far more  
convenient to do so in IB.


On Jul 7, 2009, at 1:59 PM, I. Savant wrote:


On Jul 7, 2009, at 4:48 PM, Jesse Armand wrote:


I'm not even familiar with Bindings, is it convenient to use ?



Once you understand all of its prerequisites, it can be. The better  
question to ask is is it convenient to use in this particular  
scenario. The answer may be yes or no (perhaps emphatically).




I did an intensive development with Cocoa starting with Cocoa Touch,
so I'm used to using the equivalent UITableViewDataSource to populate
table views.


My understanding is there are differences in how the two work (from  
one platform to the other) but they are basically the same concept.  
I suggested it because Bright specifically mentioned (s)he used  
bindings but wants an approach using code only. I assumed (s)he  
meant not bindings. The only other way is the table datasource  
protocol.


--
I.S.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/danhd123%40mac.com

This email sent to danhd...@mac.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com