Re: button states usually always disabled

2011-01-08 Thread Uli Kusterer
On 08.01.2011, at 06:06, Shane wrote: > My concern is that, I've got these great looking colorful icons that > can't really be seen or don't make the app look as good as it could if > the buttons were enabled. I'm thinking of putting little "light" like > indicators below the buttons that show when

Re: LOCATING MEDIA FILES IN MACINTOSH

2011-01-08 Thread John C. Daub
on 1/7/11 6:19 AM, Alastair Houghton at alast...@alastairs-place.net wrote: > On 6 Jan 2011, at 20:54, Abhinav Tyagi wrote: > >> 1) I need an efficient approach to solve this problem using Cocoa or C++. >> (very Important) >> 2) How will check a file if its a valid media file or data file. Like w

Sync services, core data and entity inheritance

2011-01-08 Thread Martin Hewitson
Dear List, I have implemented sync services in an app which uses core data. The model has entities which have parent entities. For example, there is a Meeting entity which subclasses a Category entity. When I start the app I get the following error from sync services: |CoreDataSync|Error| Exce

Re: button states usually always disabled

2011-01-08 Thread Shane
>  The reason for disabling is that the elements that can't be used right now > fade into the background, and the user can quickly scan the user interface's > available options. > >  Your program's job is to help them get work done, and ideally faster. Your > program's job is not to look good.

Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable

2011-01-08 Thread eveningnick eveningnick
> The one that comes to my mind immediately, is that if the user is > double-clicking a document in the Finder to open it, or trying to print from > the Finder, then the event for that goes to your script, not the real > application. So the script would need to pass that on. > > Assuming your ap

NSFileWrapper serializedRepresentation bloat?

2011-01-08 Thread mlist0...@gmail.com
I create an NSFileWrapper for a directory hierarchy like this (all items are directories, no files): test-dir/ test-dir/inner-dir-a test-dir/inner-dir-b test-dir/inner-dir-c The wrapper's serialized representation weighs in at around an astounding 1mB (1,022,234 bytes)! Seems that the overhead

Re: NSFileWrapper serializedRepresentation bloat?

2011-01-08 Thread Ken Ferry
Hi, That's what I see too. From inspecting the serialized rep, it looks like it's icon data. Since at least in my test case the folders did not have custom icons, it seems like one could do better. Could you file a bug please? -Ken Cocoa Frameworks On Sat, Jan 8, 2011 at 5:16 PM, mlist0...@gm

CGImageForProposedRect not scaling image

2011-01-08 Thread Ken Tozier
HI I'm trying to use NSImage's CGImageForProposedRect method to scale an image but it's not doing it. I gat back an image the same size as the original. I've double-checked all my math and that seems to be right. Here's how it's being used anyone see where I'm going wrong? - (BOOL) createThum