• 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: 2 simple questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 simple questions


  • Subject: Re: 2 simple questions
  • From: Uli Kusterer <email@hidden>
  • Date: Fri, 18 Sep 2009 18:05:09 +0200

Hi Kennedy,

let me introduce you to a brand-new tool called "Google". You can find it at http://www.google.com and you type in your questions, and generally the first to third items in the replies it gives you tell you exactly how to solve your problem. For those questions where I easily found the answer by googling, I'll just paste the Google URL with the question I typed in here.

On 18.09.2009, at 17:44, Kennedy Kok wrote:
1. How do I programmatically open a folder window?

http://www.google.com/search?client=safari&rls=en&q=cocoa+open+finder+window&ie=UTF-8&oe=UTF-8

And open a webpage using the default browser?

http://www.google.com/search?client=safari&rls=en&q=cocoa+open+web+page&ie=UTF-8&oe=UTF-8

2. How do I change the icon for a folder I have created programmatically?

http://www.google.com/search?client=safari&rls=en&q=cocoa+custom+icon+for+folder&ie=UTF-8&oe=UTF-8

How do I get it to list it under "Places" (on the left of the Finder window) programmatically?

That last one doesn't really have an official solution. I suggest you look into using AppleScript to do that, and if that fails, you could use a program like FSEventer to find out which file Finder writes this info to (it's probably a plist and it probably writes a file path or Alias data ("NSURL bookmark data") to that plist).


Cheers,
-- Uli Kusterer
"The witnesses of TeachText are everywhere..."



_______________________________________________

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


  • Follow-Ups:
    • Re: 2 simple questions
      • From: Ken Thomases <email@hidden>
References: 
 >2 simple questions (From: Kennedy Kok <email@hidden>)

  • Prev by Date: Re: Building a 64-bit Preferences Pane
  • Next by Date: Re: Reliable way to find out if CoreData finished loading
  • Previous by thread: 2 simple questions
  • Next by thread: Re: 2 simple questions
  • Index(es):
    • Date
    • Thread