Determining if a user is logged in from a Launchd Daemon

2009-02-06 Thread Tom Fortmann
that can be sent to determine this? Please let me know if anyone has any ideas on how to do this. Thanks, Tom ___ THOMAS FORTMANN Director of Development XCAPE SOLUTIONS, INC. 207 Crystal Grove Blvd. Lutz, FL 33548 TEL 847 228 9831 http

How can I display a pop-up alert message to a user from a background launchd daemon?

2009-02-04 Thread Tom Fortmann
, Tom ___ THOMAS FORTMANN Director of Development XCAPE SOLUTIONS, INC. 207 Crystal Grove Blvd. Lutz, FL 33548 TEL 847 228 9831 http://www.xcapesolutions.net www.xcapesolutions.net mailto:tfortm...@xcapesolutions.net tfortm

Adding rows in NSPredicateEditor

2009-01-26 Thread Tom
Hi everyone, I'm wondering if there is a way I can control which row template gets added when the user clicks the '+' button on an NSPredicateEditor. The template chosen seems to be random, but I want it to be a specific one for user convenience. Kind regards, Tom

NSPredicateEditor and aggregate operations

2008-12-16 Thread Tom
NSPrdicateEditorRowTemplate to do what I want, but I can't figure out how to subclass it properly based on the documentation. Is there a way to do it in IB? If not, are there any examples or tutorials regarding subclassing NSPredicateEditorRowTemplate? I can't find anything in google. Kind Regards, Tom

Re: NSPredicateEditor and aggregate operations

2008-12-16 Thread Tom
I've got around it by implementing a kind of man in the middle subclass of NSPredicateEditorRowTemplate. I set the class of the row template to my subclass in IB and it automatically adds the ANY modifier to whatever is already configured. It removes the ANY modifier from the predicate

Re: Looking for info on creating Plugins/Modules

2008-12-13 Thread Tom Jones
This is great, thanks! I think you even covered follow up questions, now it's off to read the Apple documentation. Thanks again, tom On Dec 12, 2008, at 1:05 AM, Chris Hanson wrote: On Dec 12, 2008, at 12:16 AM, Kyle Sluder wrote: On Fri, Dec 12, 2008 at 2:58 AM, Tom Jones tjo

Looking for info on creating Plugins/Modules

2008-12-11 Thread Tom Jones
launches and it's main method can be called. Is there such a architecture that I can read up on and integrate in to a Cocoa application? Thanks, tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Different result with NSURLRequest then with curl (or browser)

2008-11-23 Thread Tobias Tom
Hey everyone, I'm trying to access the API of delicious. You can access a JSON list just by using the URL http://feeds.delicious.com/v2/json/. So I tried to access that result from within cocoa code. Here's my try: NSURL *url = [NSURL URLWithString:@http://feeds.delicious.com/v2/ json/];

Different result with NSURLRequest then with curl (or browser)

2008-11-23 Thread Tobias Tom
Hey everyone, I'm trying to access the API of delicious. You can access a JSON list just by using the URL http://feeds.delicious.com/v2/json/. So I tried to access that result from within cocoa code. Here's my try: NSURL *url = [NSURL URLWithString:@http://feeds.delicious.com/v2/ json/];

How do you get the OS X version number in C or C++?

2008-11-14 Thread Tom Fortmann
Is there a core foundation function for querying the Mac OS X operating system name and version information? The uname() API returns the Darwin kernel version information, but I need to find the OS X 10.x.x information. Tom Fortmann Xcape Solutions

RE: How do you get the OS X version number in C or C++?

2008-11-14 Thread Tom Fortmann
What framework do I include in my Xcode project to pull in Gestalt? I've tries CoreServices, Carbon and Cocoa. -Original Message- From: Sean McBride [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2008 2:27 PM To: chaitanya pandit; Tom Fortmann Cc: cocoa-dev@lists.apple.com

RE: How do you get the OS X version number in C or C++?

2008-11-14 Thread Tom Fortmann
I'm an idiot! I was trying to include gestalt.h directly. Simply including the CoreService/CoreService.h header works like a champ. -Original Message- From: Sean McBride [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2008 3:17 PM To: Tom Fortmann; 'chaitanya pandit' Cc: cocoa

Use of cURL and OpenSSL versus CF and NS Classes

2008-11-03 Thread Tom Fortmann
a definitive answer here, but I'm hoping the wealth of experience on this list can provide some good advice. Tom Fortmann Xcape Solutions Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: How to exit a thread help...

2008-10-27 Thread Tom Jones
suspect it's because you aren't allowing any run loops to run. See the thread beginning here: http://lists.apple.com/archives/Cocoa-dev/2008/Oct/msg01016.html Thanks, tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

How to exit a thread help...

2008-10-25 Thread Tom Jones
Hello, I'm writing a Foundation tool and I need to run a NSTask in a separate thread. I have it working but when the task completes the thread is still running. I tried issuing a [NSThread exit] but that did nothing. What am I missing? Thanks, tom This my main code #import Foundation

Launchd timeout messages

2008-10-20 Thread Tom Fortmann
a more appropriate developer list. If one exist please forgive the intrusion and point me in the right direction. Tom Fortmann Xcape Solutions ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

RE: Launchd timeout messages

2008-10-20 Thread Tom Fortmann
Jason, Thanks. I will try removing the OnDemand key. If that doesn't work I will report on Darwin-dev list. Thanks again, Tom -Original Message- From: Jason Coco [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 3:14 PM To: Tom Fortmann Cc: cocoa-dev@lists.apple.com Subject

NSNumberFormatter unsigned long long bug?

2008-10-09 Thread Tom Bernard
*lLongMaxPlusOneString = [formatter stringFromNumber:lLongMaxPlusOneNumber]; // debugger shows -9,223,372,036,854,775,808 [unsignedLongLongTextField3 setStringValue:lLongMaxPlusOneString]; } Thanks in advance. ++ Tom Tom Bernard [EMAIL PROTECTED

Best approach to long running tasks.

2008-09-10 Thread Tom Fortmann
I'm looking for suggestions on how to best handle long running tasks. My app has a simple button connected to an Objective-C method. When I click the button the method is called and a series of steps are performed. Each involves some network activity and may take a second or two. I would like

RE: Best approach to long running tasks.

2008-09-10 Thread Tom Fortmann
Wow - thank you. This helps a lot. I've read the thread programming guide - I just wish it included more high-level design considerations and suggestions such as these. Thanks again, Tom ___ Thomas Fortmann Director of Development Xcape Solutions

RE: Cocoa-dev Digest, Vol 5, Issue 1598

2008-09-10 Thread Tom Fortmann
I'm new and jumping in late and really don't have much to add except you are both right. At its core I think it's important that OS X hold true to the concept that any Application can be installed and deleted through a simple drag and drop operation. Installers aren't a bad thing. They help

Re: NSCalendarDate to be deprecated

2008-08-27 Thread Tom Bernard
again to you and to Eliza Block for your suggestions. ++ Tom Tom Bernard [EMAIL PROTECTED] on 8/22/08 12:00 AM, Ryan McGann at [EMAIL PROTECTED] wrote: As written, 70 microseconds. When I set the calendar's time zone to GMT, the time drops to 43 microseconds. Since my app will only work

Re: NSCalendarDate to be deprecated

2008-08-19 Thread Tom Bernard
As written, 70 microseconds. When I set the calendar's time zone to GMT, the time drops to 43 microseconds. Since my app will only work with dates in GMT, this is a plus. Even so, 40 microseconds is far slower than the 7 - 8 microseconds offered by -[NSCalendarDate dayOfYear]. Unless someone has

NSCalendarDate to be deprecated

2008-08-18 Thread Tom Bernard
microseconds (The above times include 0.4 microseconds attributable to the testing overhead.) Since Apple's engineers would not throw away a perfectly good object without providing something better, I must be doing things the hard way. What is the easy way? Thanks in advance. ++ Tom Tom Bernard [EMAIL

File types opened by NSDocument architecture

2008-07-22 Thread Tom Bernard
/ keyNSDocumentClass/key stringLIVDocument/string /dict ... /array The info.plist includes a dictionary for each of the above listed types. Thanks in advance. Tom Bernard [EMAIL PROTECTED] ___ Cocoa-dev mailing

JDBC Frameworks?

2008-07-10 Thread Tom Jones
Hello, I would like to write a app to be able to talk to a couple of different types of databases (MySQL, Oracle). I'm thinking that JDBC is the way to go. Does anyone know of any JDBC frameworks and examples that you can point me towards, I cant seem to really find much. Thanks, tom

JDBC Frameworks?

2008-07-10 Thread Tom Jones
Hello, I would like to write a app to be able to talk to a couple of different types of databases (MySQL, Oracle). I'm thinking that JDBC is the way to go. Does anyone know of any JDBC frameworks and examples that you can point me towards, I cant seem to really find much. Thanks, tom

Re: JDBC Frameworks?

2008-07-10 Thread Tom Jones
Hmm, this is really a shame. I guess I was just looking for a good framework to use to connect to a database. I think this is a big hole that Apple should really fill. It would be really cool if we could connect to other databases rather than just SQLite. Thanks, tom On Jul 10, 2008

Re: JDBC Frameworks?

2008-07-10 Thread Tom Jones
, tom On Jul 10, 2008, at 8:44 PM, Jens Alfke wrote: On 10 Jul '08, at 8:30 PM, Phillip Jacobs wrote: You can use Core Data, or if for any reason you're against that or it's not available you can use fmdb. Um, those both use sqlite. Tom is asking about other SQL databases, like MySQL

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread Tom Andersen
developers. We need more than an API to set xattrs, we need to agree on names and formats. --Tom Andersen Ironic Software On 8-Jul-08, at 3:52 AM, [EMAIL PROTECTED] wrote: A lot of discussion on different application user forums seem to be going on regarding the exchange of metadata between

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread Tom Andersen
xattrs to 'one b-tree node' which I take it is 4k. http://en.wikipedia.org/wiki/Extended_file_attributes --Tom On 8-Jul-08, at 10:59 AM, Mac QA wrote: On Tue, Jul 8, 2008 at 10:45 AM, Tom Andersen [EMAIL PROTECTED] wrote: User Entered tags: -- stored: under the keyword

Re: Methods that return autoreleased objects?

2008-06-30 Thread Tom Bunch
misinterpreting you... -Tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription

Re: [Moderator] List Guidelines - Must Read

2008-06-27 Thread Tom Harrington
the discussions elsewhere, but hey, what do I know about it. -- Tom Harrington [EMAIL PROTECTED] AIM: atomicbird1 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Obj-C client and Java-RMI server

2008-04-24 Thread Tom Davies
X. Tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http

Re: NSURLConnection doesn't post

2008-04-10 Thread Tom Harrington
, is it possible that when -sendLogs is called from another class, it's also called from a separate thread? NSURLConnection's delegate methods are called on the same thread that initiated the connection, and if you've started a different thread, you have to create your own run loop. -- Tom Harrington [EMAIL

Re: System Preferences window is wider in Leopard? How do you make a Tiger compatible UI?

2008-04-10 Thread Tom Harrington
mean designing to Tiger's pref pane width, and then expanding when running on Leopard. Best to stick with looking up the size instead of the OS version, because who knows what might happen in 10.6? -- Tom Harrington [EMAIL PROTECTED] AIM: atomicbird1

Re: Adding commandline batch mode to Cocoa app

2008-03-22 Thread Tom Harrington
be as simple as a symbolic link to the main bundle's binary. Depending on your requirements, you might consider whether the batch-mode processing would be better implemented as an Automator action. -- Tom Harrington [EMAIL PROTECTED] AIM: atomicbird1 ___ Cocoa

Re: File upload with NSURLRequest fails

2008-03-14 Thread Tom Harrington
declaration in the content-type header. Once I fixed that, my code worked. -- Tom Harrington [EMAIL PROTECTED] AIM: atomicbird1 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: How does Omnifocus avoid getting focus?

2008-03-13 Thread Tom Bunch
-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/tom%40omnigroup.com This email sent to [EMAIL

Re: File upload with NSURLRequest fails

2008-03-13 Thread Tom Harrington
On Thu, Mar 13, 2008 at 2:50 PM, Tom Harrington [EMAIL PROTECTED] wrote: [postBody appendData:[[NSString stringWithString:@Content-Type: null\r\n\r\n] dataUsingEncoding:NSUTF8StringEncoding]]; Someone asked about this. FYI, null is what the other clients use, but if I use image/jpeg

Re: File upload with NSURLRequest fails

2008-03-13 Thread Tom Harrington
PM, Tom Harrington [EMAIL PROTECTED] wrote: On Thu, Mar 13, 2008 at 2:50 PM, Tom Harrington [EMAIL PROTECTED] wrote: [postBody appendData:[[NSString stringWithString:@Content-Type: null\r\n\r\n] dataUsingEncoding:NSUTF8StringEncoding]]; Someone asked about this. FYI, null

Re: How does -drawPageBorderWithSize: place pageHeader?

2008-03-12 Thread Tom Bunch
The astute reader will realize that I swapped the origin.y for the header and the footer. -Tom On Mar 12, 2008, at 5:01 PM, Tom Bunch wrote: Mike, I've messed around with this and boy has it been a head scratcher. Still haven't got it accounting properly for all combinations of scale

NSTokenField bug in 10.5.2?

2008-03-10 Thread Tom Bunch
binary is run on Leopard, the spaces are just gone. You get dates like January2008, unless you delimit w/ non- whitespace. I've cobbled together a very simple test app and put the source up at http://people.omnigroup.com/tom/NSTokenField.zip. It just prepopulates an NSTextField w/ a couple

Re: Small variant of NSSearchField?

2008-03-10 Thread Tom Bunch
= [searchField frame]; NSSize cellSize = [[searchField cell] cellSizeForBounds:searchFrame]; searchFrame.size.height = cellSize.height; [searchField setFrame:searchFrame]; If you don't set the font first, cellSizeForBounds: doesn't give you the size you want. -Tom On Mar 10, 2008, at 3

NSString and string contains

2008-03-02 Thread Tom Jones
, %@, obj); } */ } I hope the example helps, thanks, tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

<    1   2   3