• 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: anotherDockProgram-help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: anotherDockProgram-help


  • Subject: Re: anotherDockProgram-help
  • From: Adam Leonard <email@hidden>
  • Date: Fri, 20 Jan 2006 17:29:47 -0800

1. You also might want to check out the RoundTransparentWindow example: <http://developer.apple.com/samplecode/ RoundTransparentWindow/RoundTransparentWindow.html>

If you look at the nibs for these examples, they just use NSViews, so you can drag and drop whatever on them, and all you have to do in code is the transparency stuff

2. Unfortunately, you have to use carbon for aliases. However, there are third-party wrappers available. I use NDAlias by Nathan Day. See: < http://homepage.mac.com/nathan_day/pages/source.html#ndalias >
That will give you the path to where the file currently is located. To get them in a window, you can use anything from simple NSButtons to your own NSView subclasses depending on how complex you want to make it. Listen for mouseDown events and open the file with NSWorkspace.



"ah, duh" jk :)

Adam Leonard
On Jan 20, 2006, at 5:05 PM, Patrick Meirmans wrote:

Hi,

I can indeed easily answer your first question, unfortunately not the second. There is a code example on the Apple website that shows how to create a borderless window programmatically, but it simply copies the content of a window made in IB so that you can add items and line them out like you are used to:

http://developer.apple.com/samplecode/FancyAbout/FancyAbout.html

Best, Patrick

On 19 Jan, 2006, at 09:17, Alan Smith wrote:

Hi all,
I'm pretty new to Cocoa so don't say things like "ah, duh", and "you dits".
I want to write a better Dock and have quite a few questions about that kind
of stuff. I'll ask one question at a time. The first one: how do you make a
border-less window NON-programatically? I found on the web how to make one
programatically but then you can't place things in it with IB. Or can you?
If this first question is easily answered, then here's the next one: how do
you make alias's and have them show up on your window? The dock is an
excellent example but unfortunately it's not open source. That would be
really cool. Then we could help Apple make it better. Once this project is
finished you all are entitled to a copy of the program. If you want it.


Thanks in advance (it seems to be the thing to do) for any help, Alan Smith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sympatico.ca


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >anotherDockProgram-help (From: Alan Smith <email@hidden>)
 >Re: anotherDockProgram-help (From: Patrick Meirmans <email@hidden>)

  • Prev by Date: Re: anotherDockProgram-help
  • Next by Date: Fwd: Does + setKeys: triggerChangeForDependentKey override superclass' trigger keys?
  • Previous by thread: Re: anotherDockProgram-help
  • Next by thread: Re: anotherDockProgram-help
  • Index(es):
    • Date
    • Thread