• 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: Why does the Workspace not like Germans?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does the Workspace not like Germans?


  • Subject: Re: Why does the Workspace not like Germans?
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 18 Oct 2005 10:39:51 -0400
  • Organization: Rogue Research

On 2005-10-17 21:54, Gerriet M. Denkmann said:

>I have an application which has an icon called Maß.icns .
>(In case someone has messed up this name: the last character is a
>"Latin Small Letter S")
>
>NSImage *i1_ok = [ NSApp applicationIconImage ];
>NSImage *i2_ok = [ NSImage imageNamed: @"NSApplicationIcon" ];
>NSImage *i3_bad = [[NSWorkspace sharedWorkspace] iconForFile:[[NSBundle
>mainBundle] bundlePath]];

bundlePath "returns the full pathname of the receiver's bundle
directory", so you're not really asking it to open the icon file, but
rather to get the icon of your app bundle.  You need something like:

[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Ma
\U00DF.icns"]

if you really want to use NSWorkspace. Remember, you can't put non-ASCII
chars in @"" (how pathetic).

But I think NSBundle's pathForResource:ofType: is nicer.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: 
 >Why does the Workspace not like Germans? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: how to get application starts automatically
  • Next by Date: Combo box with checkboxes
  • Previous by thread: Why does the Workspace not like Germans?
  • Next by thread: Can you float a window above iPhoto slide show?
  • Index(es):
    • Date
    • Thread