• 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: determining dragging source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determining dragging source


  • Subject: Re: determining dragging source
  • From: Koen van der Drift <email@hidden>
  • Date: Sat, 27 Jul 2002 11:58:35 -0400

>> Oh, one more thing. How do I prevent my palette (an NSPanel) to respond
>> to the Close command (Cmd-W)?
>
> Assign your panel a delegate that contains the -
>(BOOL)windowShouldClose method.


I added this code, but it doesn't add the functionality I am looking for.
The panel now also doesn't close when I click the close button. The
behavior I am looking for is like the toolpalettes in the Sketch.app in the
devtools examples. I copied all the settings for the nib file to my own
palette, but it doesn't work. Also, Sketch doesn't use the
(BOOL)windowShouldClose method.

how do I do this?


thanks,

- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Can anyone tell me why this AppleEvent code isn't working?
  • Next by Date: Re: Hiding class and method symbols in the compiled program?
  • Previous by thread: Re: determining dragging source
  • Next by thread: Re: determining dragging source
  • Index(es):
    • Date
    • Thread