add a button in IKIMAGEBROWSERVIEW
add a button in IKIMAGEBROWSERVIEW
- Subject: add a button in IKIMAGEBROWSERVIEW
- From: "MAnish Billore" <email@hidden>
- Date: Tue, 22 Jul 2008 15:41:33 +0530
Hi,
I have to add a button on IKIMAGEBROWSERVIEW's selected cell.
I am using imageBrowserSelectionDidChange delegate method. but i can not see the button on the selected image.
please check the code.
-(void) imageBrowserSelectionDidChange:(IKImageBrowserView *) aBrowser
{
NSRect aRect=[ aBrowser itemFrameAtIndex:[[aBrowser selectionIndexes] firstIndex]];
NSRect bRect =NSMakeRect(aRect.origin.x+10,aRect.origin.y-10,50,50 );
NSButton *b =[[NSButton alloc] initWithFrame:bRect];
[b setTitle:@"zoom"];
[imageBrowser addSubview:b positioned:NSWindowAbove relativeTo:imageBrowser];
}
Thanks
Bill Manish
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden