Re: Tab view and radio buttons

2012-02-23 Thread Fritz Anderson
On 22 Feb 2012, at 2:00 PM, McLaughlin, Michael P. wrote:

 I am seeing a problem in which I select a radio button in a view, flip to 
 another tab then back again. When I do this for one of the tabbed views, the 
 just-selected radio button is not remembered.  In fact, all of them are in 
 the OFF state (which I did not think was even possible).
 
 Clearly, I have messed something up somewhere.  Could anyone tell me where to 
 start looking?
 
 The xib attribute inspector for these views has many options and I might have 
 them set some incorrectly. Documentation for many of these seems hard to find.

Do you implement the tabView:{did,should,will}SelectTabViewItem: delegate 
methods? I ask, not because I advocate doing so, but because they would be a 
possible locus of your problem.

I assume you're following the pattern of keeping the selection in a model 
object, and moderating between that and the matrix with a controller object. 
What do you see when you put a breakpoint in your method that sets the matrix 
selection?

— F


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Tab view and radio buttons

2012-02-22 Thread McLaughlin, Michael P.
In Xcode 4.2 (Snow Leopard), I have a window with several tab views.  Inside 
each tab view is a matrix of radio buttons with one preselected as default.

I am seeing a problem in which I select a radio button in a view, flip to 
another tab then back again.  When I do this for one of the tabbed views, the 
just-selected radio button is not remembered.  In fact, all of them are in the 
OFF state (which I did not think was even possible).

Clearly, I have messed something up somewhere.  Could anyone tell me where to 
start looking?

The xib attribute inspector for these views has many options and I might have 
them set some incorrectly.  Documentation for many of these seems hard to find.

Thanks.

--
Michael P. McLaughlin
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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