Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Trouble with icons and/or .icns ...

Trouble with icons and/or .icns ...
Thread Tools
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jun 12, 2002, 07:32 AM
 
Hello ...

I have an NSMatrix of NSImageViews in a resizable window, with springs and struts set so that the matrix resizes along with the window.

When I load the matrix with ".png"s or ".tiff"s or NSImages grabbed from files in an external folder using "iconForFile:" (NSWorkspace), my world is wonderful. When I load the matrix with ".icns"s within the project's bundle, quite the opposite: window resizing becomes excruticatingly slow and, in fact, redraws are so flaky that the window's shadow isn't rendered.

I've tried pasting the corresponding icons _onto_ the ".icns" files via the Finder and using the "iconForFile:", but I only get standard "blank document" icons in my matrix.

Any suggestions on either (1) clearing up the slowdown with using the ".icns" files directly, or (2) reading an icon from within the project bundle?

Thanks ...

DayLateDon
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:22 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2