• 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: Mini Popup Window (Like iCal)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mini Popup Window (Like iCal)


  • Subject: Re: Mini Popup Window (Like iCal)
  • From: Jonathan Dann <email@hidden>
  • Date: Fri, 11 Jul 2008 18:28:19 +0100


On 10 Jul 2008, at 19:33, Seth Willits wrote:


Has anyone created a custom window like the event info editor in iCal in 10.5? There's a few things I'm not sure how to do:


1) Drawing the window background gradient is pretty straightforward, but creating the thin border on the window is not. I'm concerned about not being getting it "thin" enough. Any tips on that?

2) The zoom-in effect. I'm going to go out on a limb here and say that this is probably done using private methods. The only public way I can think of to do it would be to grab an image of my window using the CGWindow API while the window is still hidden, then scale that in an overlay window for the effect.


I can come up with solutions for both of these, but I was hoping someone might have some better ideas or experience.


I'm working on one at the moment.  This may help you on your way

http://developer.apple.com/samplecode/RoundTransparentWindow/index.html

just draw whatever you want in -drawRect:, like a rounded rect or something.

The arrow is harder. There's a window with an arrow on Matt Gemmell's site http://mattgemmell.com/ but that uses an NSColor with a pattern image to fill the window background and that seems mess up with core animation, which can't cache the drawn window prior to animation.

HTH

Jon

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Mini Popup Window (Like iCal) (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Trashing files and undo
  • Next by Date: Re: CFBundleIdentifier & Application Version
  • Previous by thread: Re: Mini Popup Window (Like iCal) SOLVED
  • Next by thread: delegation strategy
  • Index(es):
    • Date
    • Thread