• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Connecting lots of fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connecting lots of fields


  • Subject: Re: Connecting lots of fields
  • From: Björn Carlström <email@hidden>
  • Date: Wed, 3 Dec 2003 09:27:07 +0100

Thank you both.

Hejde

2003-12-03 kl. 00.40 skrev j o a r:

Hej,

On 2003-12-02, at 23.27, Bjvrn Carlstrvm wrote:

A bit of a newbie question maybe. I'm having an object that serves as
a datasource for a tableview. The datasource basically contains an
array of records. I now want to display detailed information about the
selected record in a view using several textfields. This seems like
something thats probably been done a zillion times but I can't find an
example in any of my books. How do I set it up in IB? Do I have to
create an outlet in my dataSource for each of the fields of my record
and fill them with the right information each time the user selects a
different record, or is there an easier way?

That's usually how you would do it.

Can I connect all my NSTextFields to my dataSource and have a methiod
returning a value depending on which NSTextField called the method?

Text fields doesn't work like table views - they don't look up their
values by themselves, you need to set the values that they should have.

I believe I'm looking for something with the same simplicity as I have
when setting up an NSTableVIew with its different columns?

While I'm not sure it satisfies the "same simplicity" requirement, I
think that you might be able to get what you're looking for using the
new controller layer (only available on and post Panther):

<http://developer.apple.com/documentation/Cocoa/Conceptual/
ControllerLayer/index.html>

Perhaps in particular:

<http://developer.apple.com/documentation/Cocoa/Conceptual/
ControllerLayer/Tasks/ccwithbindingsplus.html#//apple_ref/doc/uid/
20002083/BAJGCJFI>

j o a r

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Connecting lots of fields (From: Björn Carlström <email@hidden>)
 >Re: Connecting lots of fields (From: j o a r <email@hidden>)

  • Prev by Date: Re: Notification System Woes
  • Next by Date: pointingHandCursor
  • Previous by thread: Re: Connecting lots of fields
  • Next by thread: contract for mutableArrayValueForKey: ?
  • Index(es):
    • Date
    • Thread