NSSearchField set Predicate Binding format dynamically

2012-10-22 Thread Heizer, Charles
Hello, I would like to set NSSearchField predicate binding format dynamically, but I'm not sure how. I tried to create a property called NSPredicate *aFilterPredicate; and set it's format and then tried to set the predicate format in Interface Builder to self. aFilterPredicate but it won't

Toggle row selection using checkbox

2012-07-04 Thread Heizer, Charles
Hello, I'm using a NSArrayController as the delegate and datasource for aNSTableView. In my table view I would like to use a checkbox in my first column to toggle the row selection. I have been searching thought the docs and I must be using the wrong terminology or something. Does anyone have

Override NSUserDefaults search domain order.

2011-12-01 Thread Heizer, Charles
Hello, I'm playing around with NSUserDefaults and I would like to override which domain takes precedence, but have been unsuccessful. I would really like to know how I can either force all of the NSUserDefaults to come from /Library/Preferences or read from ~/Library/Preferences then

Multi-OS API Question

2011-06-03 Thread Heizer, Charles
Hello, I'm using some API's which are only available on 10.5 and above but I want to compile my app to run on 10.4 and higher. How can I include multiple bits of code so that if the system is running 10.4 it will run Code A and if 10.5 and higher run Code B? Example if ( os == 104 ) {

Test for TCP port

2011-04-08 Thread Heizer, Charles
Hello, What is the best way to test to see if a TCP port is reachable and will answer connections? I was trying to use NSSocketPort and NSConnection but I'm not getting a valid connection. Thanks, Charles NSSocketPort *sendPort = [[NSSocketPort alloc] initRemoteWithTCPPort:3600

Re: Test for TCP port

2011-04-08 Thread Heizer, Charles
Thanks, This is what I kind of suspected. Are there any wrappers around bsd socket to make it easier? Thanks, Charles On Apr 8, 2011, at 5:17 PM, Dave Carrigan wrote: On Apr 8, 2011, at 3:26 PM, Heizer, Charles wrote: What is the best way to test to see if a TCP port is reachable

Re: Remove characters from string

2011-03-18 Thread Heizer, Charles
other encoding? Try looking at the text you have in other encodings before trying to remove characters. On 03/17/2011 6:03 AM, Heizer, Charles heiz...@llnl.gov wrote: Hello, I would like to know how to remove certain characters from a NSString. The characters are ©. I thought I could just use

Remove characters from string

2011-03-17 Thread Heizer, Charles
Hello, I would like to know how to remove certain characters from a NSString. The characters are ©. I thought I could just use encodings and convert the string using NSASCIIStringEncoding but that did not work and I'm not sure what the car codes are for these as well. Thanks, Charles

Re: Remove characters from string

2011-03-17 Thread Heizer, Charles
...@synthetiqsolutions.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/17/11 7:03 AM, Heizer, Charles wrote: Hello, I would like to know how to remove certain characters from a NSString. The characters are ©. I thought I could just use encodings and convert the string using

Select server based on proximity

2010-12-06 Thread Heizer, Charles
I'm writing a app that will download and install some software. I would like to use a distributed download model where the client has a list of servers and determines which is the one closest to it's self and uses that one. Is there a API or something to do this? Thanks, Charles

spawn_via_launchd() failed, errno=5 in Mac OS X 10.6.x

2010-09-30 Thread Heizer, Charles
Hello, I'm trying to launch my Reboot application for the current user but I keep seeing this message in the system.log. This used to work just fine under Mac OS X 10.5.x. Error Message: 9/30/10 5:50:01 PM /Library/mp/Client/oraw[6379] spawn_via_launchd() failed, errno=5

Statically link libmysqlclient.a to my Foundation tool

2010-08-20 Thread Heizer, Charles
Hello, I have been googling for a while now and have tried a few suggestions I have found in other like posts but have not had much success. I'm trying to create a stand alone Foundation tool which will connect to MySQL and I can get this to work if I link to the libmysqlclient.dylib library. But

Re: Statically link libmysqlclient.a to my Foundation tool

2010-08-20 Thread Heizer, Charles
wrote: On Fri, Aug 20, 2010 at 1:26 PM, Heizer, Charles heiz...@llnl.gov wrote: I have been googling for a while now and have tried a few suggestions I have found in other like posts but have not had much success. I'm trying to create a stand alone Foundation tool which will connect to MySQL

Re: Statically link libmysqlclient.a to my Foundation tool

2010-08-20 Thread Heizer, Charles
/Desktop/MySQLTest2/build/Release/MySQLTest2 Thanks, Charles -- Charles Heizer Systems Management Solutions Group Lawrence Livermore National Laboratory P: 925-422-0197 On 8/20/10 11:14 AM, Sherm Pendley sherm.pend...@gmail.com wrote: On Fri, Aug 20, 2010 at 2:03 PM, Heizer, Charles heiz

Re: Statically link libmysqlclient.a to my Foundation tool

2010-08-20 Thread Heizer, Charles
National Laboratory P: 925-422-0197 On 8/20/10 11:26 AM, Heizer, Charles heiz...@llnl.gov wrote: So I did a Clean All and here is what is in the link step. Ld build/Release/MySQLTest2 normal i386 cd /Users/heizer1/Desktop/MySQLTest2 setenv MACOSX_DEPLOYMENT_TARGET 10.5 /Developer/usr/bin

NSFileHandle weirdness on 10.5 ...

2010-01-12 Thread Heizer, Charles
Hello, I'm hoping someone can help me out here. I'm trying to use IPC (Unix domain socket AF_UNIX) to pass data between two applications. I have a console application which is sending data to the socket path and a Cocoa GUI app which is reading it using NSFileHandle. The problem I'm seeing is

kAELogOut and no dialog

2009-09-19 Thread Heizer, Charles
Hello, Does anyone know if there is a way to send a kAELogOut event and not display the logout dialog message? Thanks, Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Shutdown/Restart computer

2009-09-17 Thread Heizer, Charles
I use a variation of this... http://developer.apple.com/mac/library/qa/qa2001/qa1134.html On Sep 14, 2009, at 5:59 PM, PCWiz wrote: How would I shut down and restart the computer using Objective-C code? Thanks ___ Cocoa-dev mailing list