NSCursor:pop
Home 目次>ApplicationKit>NSCursor

pop

レシーバーのクラスにポップメッセージを送ります


-(void) pop


【返り値】
   voidなし


【解説】

レシーバーのクラスにポップメッセージを送ります。



【例文】


#import "MyObject.h"

@implementation MyObject
//Imageを作る
NSImage *img;
static NSCursor *cur = nil;

- (IBAction)myAction:(id)sender
{
//NSImageを作ってファイルから読み込む
img = [NSImage imageNamed: @"cuimage" ];
cur = [[NSCursor allocWithZone:[self zone]] initWithImage:img hotSpot:NSMakePoint(2.0,2.0)];
[cur push];
img = [NSImage imageNamed: @"secondImage" ];
cur = [[NSCursor allocWithZone:[self zone]] initWithImage:img hotSpot:NSMakePoint(2.0,2.0)];
[cur push];

}

- (IBAction)pop:(id)sender
{

[cur pop];

}

@end


(C) 2000-2007 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>ApplicationKit>NSCursor
修正日2006.12.26