• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
add a button in IKIMAGEBROWSERVIEW
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: add a button in IKIMAGEBROWSERVIEW
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Spurious warnings
  • Next by Date: Re: Gcc warning instead of error
  • Previous by thread: Re: Gcc warning instead of error
  • Next by thread: Re: add a button in IKIMAGEBROWSERVIEW
  • Index(es):
    • Date
    • Thread