A matrix of NSColorWells?

2014-08-21 Thread C.W. Betts
Is there a way to create multiple color wells in a way similar to how NSMatrix creates a, well, matrix of UI objects? I’m working on porting PlayerPRO to Cocoa, and currently I have a xib with 96 separate color well objects. This takes awhile to load in Xcode and probably will take awhile for

Re: Address Book question

2013-12-16 Thread C.W. Betts
My best guess: the entitlements for your app doesn't include Address Book access. If you are getting this error and your app is not signed, file a bug report at Apple. There might also be an Address Book mailing list. If there is, try asking your question there as well. On Dec 9, 2013, at 9:56

Refreshing the NSOpenPanel?

2012-12-29 Thread C.W. Betts
After I set an NSOpenPanel's allowed file types while it is open, it doesn't refresh until I move to a different folder. Is there a way to force NSOpenPanel to refresh its openable file type? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Refreshing the NSOpenPanel?

2012-12-29 Thread C.W. Betts
It's not sandboxed. On Dec 29, 2012, at 5:55 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Is your app sandboxed? If so, does disabling the sandbox make a difference? Sent from my iPad On 30 Dec 2012, at 00:43, C.W. Betts computer...@hotmail.com wrote: After I set an NSOpenPanel's

Problems with KVC

2012-11-23 Thread C.W. Betts
I'm trying to get my program PlayerPRO Cocoa to display the contents of the music list. I was able to put things into the list, but they do not show up in the table view. (Full code is available at sourceforge.net/projects/playerpro, on the PlayerPRO6 branch) I have it set up so that the App

Re: CF replacement to FSFindFolder?

2012-11-23 Thread C.W. Betts
I bit the bullet and my Plug-in handling code now has some Cocoa in it. On Nov 2, 2012, at 6:59 PM, Sean McBride s...@rogue-research.com wrote: On Fri, 2 Nov 2012 18:50:27 -0600, C.W. Betts said: Is there a Core Foundation replacement for FSFindFolder? I don't think so. Today's

Re: Problems with KVC

2012-11-23 Thread C.W. Betts
On Nov 23, 2012, at 9:57 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Nov 23, 2012, at 20:18 , C.W. Betts computer...@hotmail.com wrote: I'm trying to get my program PlayerPRO Cocoa to display the contents of the music list. I was able to put things into the list

CF replacement to FSFindFolder?

2012-11-02 Thread C.W. Betts
Is there a Core Foundation replacement for FSFindFolder? I'm reluctant to use Cocoa functions in my framework. As it is, I'm using an absolute path to get to a folder in Application Support in both the local and user libraries. ___ Cocoa-dev mailing

RE: I2C question - what is correct mailing list

2012-08-05 Thread C.W. Betts
My guess is either the darwin-kernel or darwin-drivers mailing list. Both can be found here: https://lists.apple.com/mailman/listinfo Date: Fri, 27 Jul 2012 14:08:14 +0300 From: vit...@qubyx.com To: cocoa-dev@lists.apple.com Subject: I2C question - what is correct mailing list Hello,

UITableView woes

2012-07-02 Thread C.W. Betts
I'm trying to write an iOS app that displays sentences in a table, but UITableView cuts them off. Will I need to do a custom UITableViewCell or can I make UITableView behave? I want to either display them on two rows or have a scroll bar to see the rest of the sentence.

Re: Can't get UTI to stick

2012-04-06 Thread C.W. Betts
Try making the UTI UTTypeConformsTo to also include public.data. Also, make sure in the Spotlight importer that the app's UTI is being imported. If you do mdls on a .tgc file, what do you get? On Apr 2, 2012, at 7:02 PM, Jo Meder wrote: Hi, I've written a Quick Look generator for one of my

Re: Handling UTIs from a Cocoa protocol

2011-12-18 Thread C.W. Betts
So I would do something along the lines of [NSArray arrayWithObjects:ClassName1, ClassName2, nil]? On Dec 17, 2011, at 9:51 PM, Chris Hanson wrote: On Dec 17, 2011, at 6:02 PM, C.W. Betts wrote: Is there a way to put classes into some sort of array to go through and check if the UTI

Re: Handling UTIs from a Cocoa protocol

2011-12-18 Thread C.W. Betts
/init message directly to the class object. Charles On Dec 18, 2011, at 11:01 AM, C.W. Betts wrote: Let me see if I got this right. Create an NSArray with classes like this: [NSArray arrayWithObjects:[ClassName1 class], [ClassName2 class], nil] Then how would I call it? Would [[[anArray

Handling UTIs from a Cocoa protocol

2011-12-17 Thread C.W. Betts
This is how I have my code set up: an Objective-C protocol that has a class function that returns an NSArray of UTIs that it can handle, and a member function that handles the file type: @protocol PcsxrFileHandle NSObject + (NSArray *)utisCanHandle; - (BOOL)handleFile:(NSString *)theFile;

Re: Best way to manage double-clicked files?

2011-12-12 Thread C.W. Betts
Thank you! That was exactly what I was looking for. On Dec 10, 2011, at 6:00 PM, Lee Ann Rucker wrote: Try the application delegate method application:openFile: - it gets called before the NSDocument handling gets a shot at it. - Original Message - From: C.W. Betts computer

Re: Best way to manage double-clicked files?

2011-12-10 Thread C.W. Betts
On Dec 10, 2011, at 8:23 AM, julius wrote: On Fri, 09 Dec 2011 13:14:26 -0700 C.W. Betts wrote What is the best way to handle double-clicked files in an application that doesn't use documents? The reason I ask is because a project I'm working on, PCSX-R, currently uses NSDocument

Best way to manage double-clicked files?

2011-12-09 Thread C.W. Betts
What is the best way to handle double-clicked files in an application that doesn't use documents? The reason I ask is because a project I'm working on, PCSX-R, currently uses NSDocument subclasses to handle opening of files double-clicked in the Finder. However, the

UTI not being imported?

2011-12-06 Thread C.W. Betts
I'm trying to use an imported UTI in an application, but it isn't working. This is the UTI declared in the info.plist file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd; plist version=1.0 dict

Re: UTI not being imported?

2011-12-06 Thread C.W. Betts
It is under UTImportedTypeDeclarations. I just copy-pasted the declaration without the array. On Dec 6, 2011, at 12:02 PM, Kyle Sluder wrote: On Mon, Dec 5, 2011 at 1:10 PM, C.W. Betts computer...@hotmail.com wrote: I'm trying to use an imported UTI in an application, but it isn't working

using setPlaceholderString: in NSTextField

2010-09-06 Thread C.W. Betts
I would like to set it so that I can set the placeholder string programmatically. However, when I do it, I get a warning at compile time and an error at runtime: 2010-09-06 15:42:01.617 System Preferences[50199:a0f] -[NSTextField setPlaceholderString:]: unrecognized selector sent to instance