| Home 目次>ApplicationKit>NSGridView | 10.5 |
backgroundColors
GridViewの背景色を返します
-(NSArray *) backgroundColors
【返り値】 | |
| NSArray * |
【解説】
GridViewの背景色を返します。
【例文】
- (IBAction)myAction:(id)sender
{
//最大行数をセット
[gridView setMaxNumberOfRows:(NSUInteger)3];
NSLog([[gridView backgroundColors] description]);
}
/**
Returns the support folder for the application, used to store the Core Data
store file. This code uses a folder named "gridview" for
the content, either in the NSApplicationSupportDirectory location or (if the
former cannot be found), the system's temporary directory.
*/
- (NSString *)applicationSupportFolder {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : NSTemporaryDirectory();
return [basePath stringByAppendingPathComponent:@"gridview"];
}
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSGridView | 修正日2006.12.26 |