NSPredicateEditor and aggregate operations

2008-12-16 Thread Tom
I can't find anything in google. Kind Regards, Tom Dalling ___ 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.app

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 predicat

Re: NSTask launcing executable inside a bundle

2009-09-14 Thread Tom
quot; would be better? Something to remember for the future. Tom 2009/9/14 Dave Keck > > using NSTask, or something else? > > Woops, missed your subject line; NSTask, got it. But yes, I would see > if you're able to read the executable as plain data, using NSData's > data

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

NSTextView and keyDown: in the responder chain

2009-02-11 Thread Tom
happens in a NSTextView (such as a window's field editor). Is this a bug in NSTextView or am I missing something? Kind regards, Tom Vigital ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: NSTextView and keyDown: in the responder chain

2009-02-11 Thread Tom
On 12/02/2009, at 1:06 PM, Graham Cox wrote: On 12 Feb 2009, at 1:59 pm, Tom wrote: Is this a bug in NSTextView or am I missing something? Have you actually set the next responder of the field editor/text view? I think you have to actually do that explcitly (- setNextResponder

[SOLVED] Re: NSTextView and keyDown: in the responder chain

2009-02-12 Thread Tom
On 13/02/2009, at 1:58 AM, Ross Carter wrote: On Feb 11, 2009, at 10:21 PM, Tom wrote: However, I've found that when an NSTextView receives a keyDown event that doesn't handle, it doesn't bother to send the event down the responder chain and just calls NSBeep(). I ex

Possible NSPredicateEditor bug

2009-07-02 Thread Tom
[subpredicates addObject:[[single copy] autorelease]]; NSPredicate* compound = [NSCompoundPredicate orPredicateWithSubpredicates:subpredicates]; [m_predicateEditor setObjectValue:compound]; } Am I doing something wrong? --Tom ___ Coc

Re: Possible NSPredicateEditor bug (found workaround)

2009-07-05 Thread Tom
On 03/07/2009, at 12:26 PM, Tom wrote: Hi everyone, I'm either doing something wrong, or I've found a bug in NSPredicateEditor. Whenever I use setObjectValue: on the NSPredicateEditor, it displays the new predicate, but if I change a couple of the operators (is, contains, b

NSObjectController mapped to NSArrayController selection

2009-12-23 Thread Tom
Controller) with controller key "content" and model key "name" However the label shows nothing no matter what selection is there. NSArrayController's selection is properly updated - if I bind the label to it's selection.name directly it works. What am I missing? Thanks, T

Re: NSObjectController mapped to NSArrayController selection

2009-12-23 Thread Tom
as to what could be the culprit. Any more ideas? Tomaz 2009/12/23 Quincey Morris > On Dec 23, 2009, at 00:10, Tom wrote: > > > Did you try binding the label to controller key "selection" in the object > controller, instead of "content"? It ought to be the same thin

Binding NSPopUpButton selectedIndex with custom view for menu item

2010-01-06 Thread Tom
x27;s selection. Any help would be appreciated. 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(at)lists.apple.com Help/Uns

NSString and string contains

2008-03-02 Thread Tom Jones
NSLog(@"I found home, %@", 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. Co

NSTokenField bug in 10.5.2?

2008-03-10 Thread Tom Bunch
ut when the same 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 p

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,

Re: NSTokenField bug in 10.5.2?

2008-03-12 Thread Tom Bunch
quite that much) and show up in the token field w/ a lozenge around them. The test app at http://people.omnigroup.com/tom/NSTokenField.zip has been modified w/ the workaround. -Tom On Mar 10, 2008, at 3:00 PM, Tom Bunch wrote: Hey developers, I've been grappling with a problem very sim

Re: How does -drawPageBorderWithSize: place pageHeader?

2008-03-12 Thread Tom Bunch
der and a topRightHeader into one NSTextStorage using page with info and NSRightTabStops was kind of a pain. I think if I do it again I'll just use separate text storages. Hope this helps. -Tom On Mar 12, 2008, at 2:47 PM, Mike Wright wrote: I have an app (Universal, compiled using XCo

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

Re: How does Omnifocus avoid getting focus?

2008-03-13 Thread Tom Bunch
ist (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://lists.apple.com/mailman/options/cocoa-dev/tom%40omnigroup.com This email sent

File upload with NSURLRequest fails

2008-03-13 Thread Tom Harrington
NSData *data = [NSURLConnection sendSynchronousRequest:req returningResponse:&res error:&err]; -- Tom Harrington

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

Re: File upload with NSURLRequest fails

2008-03-13 Thread Tom Harrington
r 13, 2008 at 3:02 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:N

Re: Strange retainCount from NSTimer

2008-03-13 Thread Tom Bunch
really want to figure it out, just make a trivial subclass of NSTimer that implements retain, release, autorelease, and maybe dealloc. Make them log, set breakpoints on them, take them apart and see what makes them tick. -Tom On Mar 13, 2008, at 6:37 PM, Brian Greenstone wrote: I'm hop

Re: File upload with NSURLRequest fails

2008-03-14 Thread Tom Harrington
o have two more dashes than the boundary 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 reques

Re: Adding commandline batch mode to Cocoa app

2008-03-22 Thread Tom Harrington
ally install the command-line tool. Depending on your architecture the command-line tool could 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 i

Re: NSURLConnection doesn't post

2008-04-10 Thread Tom Harrington
st the data and call its delegate methods. Also, 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 differen

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

2008-04-10 Thread Tom Harrington
] superview] frame]" would give you the current width, and if desired you could adjust mainView's frame appropriately. This would mean designing to Tiger's pref pane width, and then expanding when running on Leopard. Best to stick with looking up the size instead

Re: NSURLConnection doesn't post

2008-04-11 Thread Tom Harrington
o just give the thread its own run loop. It all depends on your app architecture. -- Tom Harrington [EMAIL PROTECTED] AIM: atomicbird1 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Obj-C client and Java-RMI server

2008-04-24 Thread Tom Davies
nd OS 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:

Re: [Moderator] List Guidelines - Must Read

2008-06-27 Thread Tom Harrington
forum. It seems kind of silly that iPhone discussion is forbidden here when Apple's apparently not concerned with hosting the discussions elsewhere, but hey, what do I know about it. -- Tom Harrington [EMAIL PROTECTED] AIM: atomicbird1 ___ Cocoa

Re: Methods that return autoreleased objects?

2008-06-30 Thread Tom Bunch
o die a slow leaky death. Perhaps I'm 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.c

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread Tom Andersen
greed on by several interested 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 th

Re: Proposal for metadata interoperability on OS X

2008-07-08 Thread Tom Andersen
imits 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: ---

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

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

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, at

Re: JDBC Frameworks?

2008-07-10 Thread Tom Jones
anks again, 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 d

File types opened by NSDocument architecture

2008-07-22 Thread Tom Bernard
leTypeOSTypes gif CFBundleTypeRole Editor LSTypeIsPackage NSDocumentClass LIVDocument ... The info.plist includes a dictionary for each of the above listed types. Th

Use of cURL and OpenSSL versus CF and NS Classes

2008-11-03 Thread Tom Fortmann
w there isn't 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

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.appl

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 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-dev@lists.ap

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/"]; N

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/"]; N

Looking for info on creating Plugins/Modules

2008-12-11 Thread Tom Jones
is loaded when the app 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

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 wrote

New Developer Docs for Cocoa and QTKit Developers with Snow Leopard Release

2009-08-30 Thread Tom Maremaa
w to modify your existing QTKit code and opt into the new, high-performance playback capabilities available in QuickTime X, as well as how to deal with monitoring load state. -Tom Maremaa Apple Developer Documentation - QuickTime___ Cocoa-dev maili

Changing the edit behaviour of a cell

2009-10-09 Thread Tom Davie
I've been busy reading the documentation all day, and can't for the life of me figure out how to change the editing behavior of an NSCell. I have a cell, which I'd like to pop up a window over when the user attempts to edit it (much like many websites do to present a date picker for example). I ha

Recursively get all files and folders

2009-10-11 Thread Tom Jones
Hello, I'm playing with NSFileManager and I'm trying to get all of the contents of a directory. When I use "directoryContentsAtPath" it just gives me the one level. Is there an easy/good way to get all subdirectories and files a

Re: Recursively get all files and folders

2009-10-11 Thread Tom Jones
Thanks, I have no idea how I missed that in the docs :-P tom - Original Message - From: "Dave Keck" To: "Tom Jones" Cc: cocoa-dev@lists.apple.com Sent: Sunday, October 11, 2009 10:57:43 AM GMT -08:00 US/Canada Pacific Subject: Re: Recursively get all fi

Writing NSArray data to file, and compression

2009-10-11 Thread Tom Jones
y big. [fileArray writeToFile:@"/Users/Shared/test" atomically:TRUE]; [NSKeyedArchiver archiveRootObject:fileArray toFile:@"/Users/Shared/test2"]; What other options do I have to write my NSDirectoryEnumerator data to a file with good c

Scanning

2009-11-17 Thread Tom Davie
I'm trying desperately to find where the API for scanning images is, I've found the Image Capture API on developer.apple.com, but I can't find a more recent version than one for 10.4, and none of the sample code compiles any more, worse the sample apps crash on launch. What should I be searching t

Re: extracting the mantissa for a NSDecimal

2009-11-20 Thread Tom Bernard
sData = [NSData dataWithBytes:&anNSDecimal length:sizeof(NSDecimal)]; gives you an NSData object suitable for an NSDictionary without having to muck around with NSDecimal's private fields. ++ Tom Tom Bernard tombern...@bersearch.com > --__--__-- > > Message: 11 > Date: Tue,

NSDecimal chokes on very small numbers

2009-11-21 Thread Tom Bernard
eEminusThirtyFive = 0.001 oneEminusThirtyFiveToFourthPower = 10000000 0 err = 0 Tom Bernard tombern...@bersearch.com ___ Cocoa-dev mai

Re: extracting the mantissa for a NSDecimal

2009-11-21 Thread Tom Bernard
a file and retrieves them. I plan to test these apps on modern and legacy hardware to verify the endian question. But for now, that is a side-track for me. Has anyone already done such a test? ++ Tom Tom Bernard tombern...@bersearch.com on 11/20/09 1:02 PM, Greg Guerin wrote: > Message

Global Object

2009-11-26 Thread Tom Jones
work. What do I need to do? 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(at)lists.apple.com Help/Unsubscribe/Update

Re: Global Object

2009-11-28 Thread Tom Jones
uff"];" in any of my classes. I have never really done this before. Should I just re-init it in each of my classes? Thanks, tom On Nov 27, 2009, at 11:10 PM, Jens Alfke wrote: > > On Nov 26, 2009, at 9:18 AM, Tom Jones wrote: > >> I thought I could just create a Global

NSCalendarDate to be deprecated

2008-08-18 Thread Tom Bernard
rForDate3(): 74.5191 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 adva

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 an

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.

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 t

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 Solu

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 user

NSNumberFormatter unsigned long long bug?

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

Launchd timeout messages

2008-10-20 Thread Tom Fortmann
FYI - I know this is a little off the Cocoa topic, but I didn't see a more appropriate developer list. If one exist please forgive the intrusion and point me in the right direction. Tom Fortmann Xcape Solutions ___ Cocoa

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 Su

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 #i

Re: How to exit a thread help...

2008-10-27 Thread Tom Jones
thread is completed it's still present. >> What am I missing? > I 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

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

2009-02-04 Thread Tom Fortmann
ovide, 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...@xcapesolutio

Determining if a user is logged in from a Launchd Daemon

2009-02-06 Thread Tom Fortmann
Event 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

RE: Determining if a user is logged in from a Launchd Daemon

2009-02-09 Thread Tom Fortmann
...likely that they will be formally deprecated in a future version of Mac OS X", where as the utmpx API is new to 10.5 which implies a potentially longer life. Thanks again, Tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Code Signing Examples

2009-02-20 Thread Tom Fortmann
tical application within my code. I've also looked at simply running the codesign utility and parsing its XML output, but this seems like a weak design. What is codesign gets replaced? Tom ___ THOMAS FORTMANN Director of Development XCAPE

RE: Code Signing Examples

2009-02-20 Thread Tom Fortmann
PM To: Tom Fortmann Cc: cocoa-dev@lists.apple.com; darwin-...@lists.apple.com Subject: Re: Code Signing Examples On Feb 20, 2009, at 6:47 AM, Tom Fortmann wrote: > Can anyone point me to sample code on how to verify an application > or process is signed? My application executes a c

Advice for drawing complex, line-based designs

2009-05-05 Thread Tom Roehl
I'm working on a project where I'm reading in a file that contains a list of coordinates that are used to define a stitch pattern for embroidery machines. Think of those machines you see at the mall that stitch names and logos on hats and t-shirts. To display the images, I created a documen

launchd detecting when an application is running

2009-06-03 Thread Tom Hohensee
How do I configure a launchd .plist file to detect when an application running. 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

Re: launchd detecting when an application is running

2009-06-03 Thread Tom Hohensee
certain actions. I was wondering if there was a launchd.plist key that allowed for launchd to detect an application startup. Tom Your question is unclear and doesn't make much sense. Please give lots of clarification, and consider posting your question on a list where it's more on-topi

Re: launchd detecting when an application is running

2009-06-04 Thread Tom Hohensee
scanned that page several times but never really paid much attention to that statement. Tom On Jun 4, 2009, at 11:51 AM, Greg Guerin wrote: Tom Hohensee wrote: I have written an application that I would like to launch whenever a certain app is launched. I have used LaunchAgents in the past to

Re: Scheduling an application

2009-06-05 Thread Tom Hohensee
You are going to have to programmatically load the plist. On Jun 3, 2009, at 4:52 AM, rethish wrote: hi, I want to launch my application using a time based scheduling. I have created a plist by setting the keys: Label, onDemand, ProgramArguments and startCalenderInterval. And I placed the pl

Re: Making an NSButton appear selected.

2009-06-05 Thread Tom Hohensee
/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/tomhoh%40mac.com This email sent to tom...@mac.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: generation of software license keys

2009-06-08 Thread Tom Hohensee
Try AquaticPrime. It is very good and has good documentation. Tom On Jun 8, 2009, at 2:57 AM, Matthew Delves wrote: Hey Folks, I'm looking for a tutorial or some sample code for creating software licenses for an app I'm developing. Unfortunately the interwebs seem to be rather

Re: Serial port access from C / Objective C

2009-06-16 Thread Tom Hohensee
If you want to access the serial port via Objective-C classes try AMSerialPort. It is a collection of classes to access serial ports. I have used it extensively for my serial programs and it works very well. Tom On Jun 15, 2009, at 5:10 PM, Vansickle, Greg wrote: I'm tryi

Watch for a file

2009-06-24 Thread Tom Jones
I'm trying to use NSNotification to watch for a file but I can not seem to get it to work. Is it possible to use NSNotification to watch for a specific file on the file system? One example would be to run a method once the file shows up on the filesystem. Thanks

Re: Watch for a file

2009-06-24 Thread Tom Jones
Thanks Graham. I downloaded Uli's class but I dont see any example code. By any chance do you have a quick example? Thanks, tom - Original Message - From: "Graham Cox" To: "Tom Jones" Cc: cocoa-dev@lists.apple.com Sent: Wednesday, June 24, 2009 7:38:54 PM GMT

Re: Watch for a file

2009-06-24 Thread Tom Jones
Thanks Rob. This works great and if Stu is on this list great class! tom - Original Message - From: "Rob Keniger" To: "cocoa-dev Dev" Sent: Wednesday, June 24, 2009 7:57:21 PM GMT -08:00 US/Canada Pacific Subject: Re: Watch for a file On 25/06/2009, at 12:38

Re: Serial device open(2) hang.

2009-06-27 Thread Tom Hohensee
Steve, Serial out is the tty prefixed with cu. ./a.out/dev/cu.USA49W62P1.1 Tom On Jun 27, 2009, at 7:55 PM, Steve Checkoway wrote: I have a Keyspan USA-49WLC USB to 4 serial ports adapter which, when plugged in, correctly shows 4 /dev/tty.USA* and 4 /dev/cu.USA* devices. I'm tryi

Re: NSDecimal chokes on very small numbers

2009-12-08 Thread Tom Bernard
Mac OS X 10.5.7 and FIXED under Mac OS X 10.6 (10A380) Not fixed is the NSDecimalPower() bug already noted. Also, the documentation for NSDecimalIsNotANumber() has the return values YES and NO reversed. Bug reports: NSDecimalPower(): 7452166 NSDecimalIsNotANumber() documentation: 7452179 Tom

Removing the dragging image

2009-12-27 Thread Tom Davie
of it? Thanks Tom Davie ___ 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: Encrypting Binary Strings

2009-12-30 Thread Tom Davie
Simple answer: no. If your application can still read the strings, so can a clever person, if by nothing else than sitting and patiently emulating a CPU with a piece of paper and a pencil. In order to actually secure something *you, or your recipient* have to be involved in decrypting it, by know

Re: [iphone] Release Navigation View Controller Question

2010-01-17 Thread Tom Davie
Yes, that code is 100% fine. Here's the logic from purely your point of view. You allocate browserviewController and in doing so take ownership. You do some stuff with browserviewController. You are finished with browserviewController, and don't want to do anything else with it, so you resign own

Re: UIImageView display as "multiply"?

2010-01-22 Thread Tom Davie
An image doesn't carry a blend mode, merely the image data. You *draw* the image in a given blend mode. Bob On Fri, Jan 22, 2010 at 3:52 PM, Eric E. Dolecki wrote: > I'm not combining two or more images, I merely would like a single uiimage > in a uiimageview to have a blend mode applied to it

Bizarre locking issue

2010-01-24 Thread Tom Davie
*)tableColumn byItem:(id)item { return @"Library"; // if (item == self.library) // { // return @"Library"; // } } Note that commenting out both lines that requests self.library cause the error to go away. Any help would be much appreciated. Thanks Tom Davie p.s. Here's a st

Re: NSRuntime.loadLibrary(/usr/lib/java/libObjCJava.dylib) error

2009-06-14 Thread Thomas G. Schaffernoth (Tom)
SOunds good. Look forward to getting time together when you get here in August. Although, we might be on vacation for some of that time. How you handling the challenges? -- Thanks. Thomas G. Schaffernoth (Tom) Quoting Tejas Vora : Thanks a lot for the responses. Just require some