API  0.9.8
 All Classes Files Functions Variables Typedefs Macros Groups 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  CPColor
 
class  CPColorPanel
 
class  CPColorPicker
 
class  CPColorWell
 
class  CPControl
 
class  CPCookie
 
class  CPDatePicker
 
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  CPPasteboard
 
class  CPPopover
 
class  CPPopUpButton
 
class  CPProgressIndicator
 
class  CPResponder
 
class  CPRuleEditor
 A view for creating and configuring criteria. More...
 
class  CPScreen
 
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  CPView
 
class  CPViewController
 
class  CPWebView
 
class  CPWindow
 
class  CPWindowController
 

Variables

 CPDocModalWindowMask = 1 << 6
 
global CPApp CPRadioImageOffset = 4.0
 
var CPScrollViewDelegate_scrollViewDidScroll_ = 1 << 1
 
var CPScrollViewDelegate_scrollViewWillScroll_ = 1 << 0
 
var CPScrollViewFadeOutTime = 1.3
 
var HORIZONTAL_MARGIN = 2
 
var NAMES_FOR_PARTS = {}
 
var PARTS_ARRANGEMENT = [CPScrollerKnobSlot, CPScrollerDecrementLine, CPScrollerIncrementLine, CPScrollerKnob]
 
var PARTS_FOR_NAMES = {}
 
var TIMER_INTERVAL = 0.2
 

Detailed Description

Variable Documentation

CPDocModalWindowMask = 1 << 6
The CPPanel class defines objects that manage the panels of the Cappuccino user interface. A panel is a window that serves an auxiliary function within an application. It generally displays controls that the user can act on to give instructions to the application or to modify the contents of a standard window.</p>

Panels behave differently from standard windows in only a small number of ways, but the ways are important to the user interface:

  • Panels can assume key window status but not main window status. (The key window receives keyboard events. The main window is the primary focus of user actions; it might contain the document the user is working on, for example.)

To aid in their auxiliary role, panels can be assigned special behaviors:

  • A panel can be precluded from becoming the key window until the user makes a selection (makes some view in the panel the first responder) indicating an intention to begin typing. This prevents key window status from shifting to the panel unnecessarily.
  • Palettes and similar panels can be made to float above standard windows and other panels. This prevents them from being covered and keeps them readily available to the user.
  • A panel can be made to work even when there's an attention panel on-screen. This permits actions within the panel to affect the attention panel.

Definition at line 51 of file CPPanel.j.

global CPApp 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 67 of file CPRadio.j.

var CPScrollViewDelegate_scrollViewDidScroll_ = 1 << 1

Definition at line 94 of file CPScrollView.j.

var CPScrollViewDelegate_scrollViewWillScroll_ = 1 << 0

Definition at line 93 of file CPScrollView.j.

var CPScrollViewFadeOutTime = 1.3

Definition at line 96 of file CPScrollView.j.

var HORIZONTAL_MARGIN = 2

This class displays an array as a grid of objects, where each object is represented by a view. The view is controlled by creating a CPCollectionViewItem and specifying its view, then setting that item as the collection view prototype.

Delegate Methods

- (void)collectionView:(CPCollectionView)collectionView didDoubleClickOnItemAtIndex:(int)index; Called when the user double-clicks on an item in the collection view.

Parameters
collectionViewthe collection view that received the double-click
indexthe index of the item that received the double-click

- (CPData)collectionView:(CPCollectionView)collectionView dataForItemsAtIndexes:(CPIndexSet)indices forType:(CPString)aType; Invoked to obtain data for a set of indices.

Parameters
collectionViewthe collection view to obtain data for
indicesthe indices to return data for
aTypethe data type
Returns
a data object containing the index items

- (CPArray)collectionView:(CPCollectionView)collectionView dragTypesForItemsAtIndexes:(CPIndexSet)indices; Invoked to obtain the data types supported by the specified indices for placement on the pasteboard.

Parameters
collectionViewthe collection view the items reside in
indicesthe indices to obtain drag types
Returns
an array of drag types (CPString)

Definition at line 80 of file CPCollectionView.j.

NAMES_FOR_PARTS[CPScrollerKnob] = {}

Definition at line 54 of file CPScroller.j.

Definition at line 53 of file CPScroller.j.

var PARTS_FOR_NAMES = {}

Definition at line 55 of file CPScroller.j.

var TIMER_INTERVAL = 0.2

Used to display views that are too large for the viewing area. the CPScrollView places scroll bars on the side of the view to allow the user to scroll and see the entire contents of the view.

Definition at line 92 of file CPScrollView.j.