API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
AppKit

Classes

class  CPAccordionView
 
class  CPAccordionViewItem
 
class  CPAlert
 
class  CPAnimation
 
class  CPApplication
 
class  CPBezierPath
 
class  CPBox
 
class  CPBrowser
 
class  CPButton
 
class  CPCib
 
class  CPClipView
 
class  CPCollectionView
 
class  CPColor
 
class  CPColorPanel
 
class  CPColorPicker
 
class  CPColorWell
 
class  CPControl
 
class  CPCookie
 
class  CPDocument
 
class  CPDocumentController
 
class  CPEvent
 
class  CPFlashMovie
 
class  CPFlashView
 
class  CPFont
 
class  CPFontManager
 
class  CPGraphicsContext
 
class  CPImage
 
class  CPImageView
 
class  CPLevelIndicator
 
class  CPMenu
 
class  CPMenuItem
 
class  CPOutlineView
 
class  CPPanel
 
class  CPPasteboard
 
class  CPPopover
 
class  CPPopUpButton
 
class  CPPredicateEditor
 CPPredicateEditor is a subclass of CPRuleEditor that is specialized for editing CPPredicate objects. More...
 
class  CPPredicateEditorRowTemplate
 CPPredicateEditorRowTemplate describes available predicates and how to display them. More...
 
class  CPProgressIndicator
 
class  CPResponder
 
class  CPRuleEditor
 A view for creating and configuring criteria. More...
 
class  CPScreen
 
class  CPScroller
 
class  CPScrollView
 
class  CPSearchField
 
class  CPSecureTextField
 
class  CPSegmentedControl
 
class  CPShadowView
 
class  CPSlider
 
class  CPSplitView
 
class  CPTableView
 
class  CPTabView
 
class  CPTabViewItem
 
class  CPTextField
 
class  CPTheme
 
class  CPThemeBlend
 
class  CPToolbar
 
class  CPToolbarItem
 
class  CPView
 
class  CPViewController
 
class  CPWebView
 
class  CPWindow
 
class  CPWindowController
 

Variables

 CPRadioImageOffset = 4.0
 

Detailed Description

Variable Documentation

CPRadioImageOffset = 4.0

from this mailing list thread: http://groups.google.com/group/objectivej/browse_thread/thread/7c41cbd9cbee9ea3


Creating a checkbox is easy enough:

checkbox = [[CPCheckBox alloc] initWithFrame:aFrame];

That's basically all there is to it. Radio buttons are very similar, the key difference is the introduction of a new class CPRadioGroup, which defines which radio buttons are part of the same group:

[myRadioButton setRadioGroup:aRadioGroup];

Every radio button receives a unique radio group by default (so if you do nothing further, they will all behave independently), but you can use an existing radio button's group with other buttons as so:

button1 = [[CPRadio alloc] initWithFrame:aFrame]; ... button2 = [[CPRadio alloc] initWithFrame:aFrame radioGroup:[button1 radioGroup]]; ... button3 = [[CPRadio alloc] initWithFrame:aFrame radioGroup:[button1 radioGroup]]; ...etc...

Here, all the radio buttons will act "together". [[button1 radioGroup] allRadios] returns every button that's part of this group, and [[button1 radioGroup] selectedRadio] returns the currently selected option.

Definition at line 64 of file CPRadio.j.