On Jun 18, 2008, at 2:21 PM, Nathan wrote:

On Wed, Jun 18, 2008 at 4:41 AM, Michael Kaye <[EMAIL PROTECTED]> wrote:
wow, I'm another one just starting the same challenge...how many of us
newbies are there working through Hillegaas at the moment?

/me raises hand.

I'm currently stuck on challenge 1 in chapter 8 (pg 135):  Make the
application sort people based on the number of characters in their
names using only Interface Builder.

I can do it by cheating (not using Interface Builder), but for the
life of me I can't figure it out using only IB.

Assuming you've followed the RaiseMan example up to that point, and have IB open, select the 1st column of the NSTableView (in MyDocument.nib - or .xib, depending on your Xcode version), and examine its properties with the inspector window. Make sure the sortKey is personName.length, and the selector is "compare:". If that doesn't work, delete the text for the sort key and try again. If it still doesn't work, then something isn't connected to the ArrayController properly. Otherwise, you should be able to get it to work with that key path.
  HTH!

~ Nathan
_______________________________________________

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/wsquires% 40satx.rr.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to