My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* Copyright (c) 2006-2007 Christopher J. W. Lloyd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#import <AppKit/NSControl.h>
#import <AppKit/NSButtonCell.h>

@interface NSButton : NSControl

-(BOOL)isTransparent;
-(NSString *)keyEquivalent;
-(NSUInteger)keyEquivalentModifierMask;
-(NSImage *)image;
-(NSCellImagePosition)imagePosition;
-(NSString *)title;
-(NSInteger)state;
-(BOOL)allowsMixedState;
-(NSSound *)sound;

-(NSBezelStyle)bezelStyle;
-(NSString *)alternateTitle;
-(NSImage *)alternateImage;
-(NSAttributedString *)attributedTitle;
-(NSAttributedString *)attributedAlternateTitle;
-(BOOL)showsBorderOnlyWhileMouseInside;
-(void)getPeriodicDelay:(float *)delay interval:(float *)interval;

-(void)setTransparent:(BOOL)value;
-(void)setKeyEquivalent:(NSString *)value;
-(void)setKeyEquivalentModifierMask:(NSUInteger)value;
-(void)setImage:(NSImage *)value;
-(void)setImagePosition:(NSCellImagePosition)value;
-(void)setTitle:(NSString *)value;
-(void)setState:(NSInteger)value;
-(void)setNextState;
-(void)setAllowsMixedState:(BOOL)value;
-(void)setSound:(NSSound *)value;

-(void)setBezelStyle:(NSBezelStyle)value;
-(void)setAlternateTitle:(NSString *)value;
-(void)setAlternateImage:(NSImage *)value;
-(void)setAttributedTitle:(NSAttributedString *)value;
-(void)setAttributedAlternateTitle:(NSAttributedString *)value;
-(void)setShowsBorderOnlyWhileMouseInside:(BOOL)value;
-(void)setPeriodicDelay:(float)delay interval:(float)interval;

-(void)setButtonType:(NSButtonType)value;
-(void)setTitleWithMnemonic:(NSString *)value;

-(void)highlight:(BOOL)value;
-(BOOL)performKeyEquivalent:(NSEvent *)event;
-(void)performClick:sender;

@end

Change log

01b5c314ae3d by cocotron on May 13, 2008   Diff
- NSAlert implemented
- NSButton expanded to match doc.s,
NSCell, NSButtonCell attributedTitle work
Go to: 
Project members, sign in to write a code review

Older revisions

faf6c2a512a5 by cocotron on Aug 26, 2007   Diff
-  Issue 39  fix for NSDateFormatter,
check for error being NULL in
NSDateFormatter getObjectValue:
- Fixed bug in NSRunLoop which would
cause a timer set up during an ASAP
...
84410186d7e3 by cocotron on Apr 5, 2007   Diff
- Added Rolf Jansen's NSCell,
NSButtonCell, NSButton patches for
more button types and mixed state

- Implemented NSDisclosureBezelStyle
...
2470bd80abf4 by cocotron on Jan 1, 2007   Diff
Added templates for many missing
classes, updated copyright for 2007,
+[NSValue valueWithRange:],-[NSObject
className]
All revisions of this file

File info

Size: 2636 bytes, 58 lines
Powered by Google Project Hosting