• 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
Re: cocoa sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa sheets


  • Subject: Re: cocoa sheets
  • From: k barnd <email@hidden>
  • Date: Fri, 9 Nov 2001 13:55:09 -0800 (PST)

as far as the default button goes you can set this in
IB. in the Attributes pain for your button where it
says <no key>, click the drop down menu and choose
Return. this will make the button throb and when the
return key is hit it will activate the button.

Kevin

--- Finlay Dobbie <email@hidden>
wrote:
> On Friday, November 9, 2001, at 12:05 am, Robert
> Goldsmith wrote:
>
> > This works fine. Now, my sheet has two buttons. I
> have looked for
> > default connections for these buttons (ok and
> cancel) but there seem to
> > be none so I've connected them to actions in the
> windows delegate. This
> > works fine. However, when either of these buttons
> are pressed, I want
> > to close the sheet. I have tried using the close
> method but, although
> > this works to remove the sheet, it does not stop
> the modal operation
> > NSApp is in and it beeps at me.
>
> [sheet orderOut:self];
> [NSApp endSheet:sheet];
>
> > Any suggestions?
> >
> > On a side note, I also can't find a way in IB to
> set the cancel button
> > to being the default (blue, throbbing). Do I have
> to do this in code or
> > can it be done in IB?
>
> Set its key equivalent to a return.
> _______________________________________________
> cocoa-dev mailing list
> email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Find a job, post your resume.
http://careers.yahoo.com


References: 
 >Re: cocoa sheets (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: F12 and CD-RW open/close
  • Next by Date: Re: F12 and CD-RW open/close
  • Previous by thread: Re: cocoa sheets
  • Next by thread: Re: cocoa sheets
  • Index(es):
    • Date
    • Thread