Re: awakeFromInsert called twice with nested contexts

2011-11-27 Thread Tom Harrington
On Sun, Nov 20, 2011 at 2:34 PM, Richard Somers rsomers.li...@infowest.com wrote: On Nov 16, 2011, at 6:16 PM, Tom Harrington wrote: I'm finding that if I use nested managed object contexts, awakeFromInsert will be called twice on new objects. On Mac OS X 10.7 NSManagedObjectContext can

Re: awakeFromInsert called twice with nested contexts

2011-11-27 Thread Tom Harrington
On Sun, Nov 27, 2011 at 6:09 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Nov 27, 2011, at 16:49 , Tom Harrington wrote: Actually I don't, so far as I can tell. As I mentioned in my previous message, I get the same managed object ID both times. I haven't checked

Changing the appearance of buttons

2011-11-08 Thread Tom Jeffries
code available? Thanks, Tom Jeffries ___ 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

Re: Changing the appearance of buttons

2011-11-08 Thread Tom Jeffries
Mac. sent from my mobile phone On Nov 8, 2011 1:37 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Mac or iOS? On 8 Nov 2011, at 18:52, Tom Jeffries wrote: This is probably an elementary question. I need to... ___ Cocoa-dev mailing list

Re: IKImageBrowserView spinning animation on the Cell

2011-10-29 Thread Tom Hohensee
at https://github.com/kelan/yrk-spinning-progress-indicator-layer. You should be able to use the YPKSpinningProgressLayer classes for what you need. Tom On Oct 29, 2011, at 7:58 AM, XiaoGang Li wrote: IKImageBrowserCel ___ Cocoa-dev mailing list (Cocoa

Re: creating multiple NSTimers

2011-09-30 Thread Tom Hohensee
and the sprinkler project). etc. Anyway food for thought. Tom On Sep 30, 2011, at 3:37 AM, Conrad Shultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/30/11 12:29 AM, Thomas Davie wrote: When the user updates a timer, one is forced to re-sort the array and reposition

creating multiple NSTimers

2011-09-29 Thread Tom Hohensee
For the life of me I cannot figure this one out. I need to create an indeterminate amount of timers for an app I am working on. The app is petty simple. For example, provide a list of ip enabled devices with times to shut off and the app executes the device's shutdown at the specified time.

Re: creating multiple NSTimers

2011-09-29 Thread Tom Hohensee
two or more timers are set to fire at the same time. Tom On Sep 29, 2011, at 4:51 PM, David Duncan wrote: On Sep 29, 2011, at 2:47 PM, Tom Hohensee wrote: However, I do not know wether the user will have 1 device or 100 devices. Do I have to setup a finite amount of timers (ultimately

Re: creating multiple NSTimers

2011-09-29 Thread Tom Hohensee
. At this point I need a fresh prospective on this. Any thoughts would be greatly appreciated. Tom On Sep 29, 2011, at 5:15 PM, David Duncan wrote: I think you need to backup and explain exactly what your requirements are. If you really do need to track these timers, you will probably need

Re: creating multiple NSTimers

2011-09-29 Thread Tom Hohensee
object being the object. Man it is hard to get off of a train of though sometimes. Ultimately each facility has between 20 and 30 boxes. I really did not want to poll. Thanks again Tom On Sep 29, 2011, at 7:27 PM, Graham Cox wrote: Timers are objects, and can be retained like any other

JSON Parser

2011-09-08 Thread Tom Hohensee
? 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 your Subscription: http

Re: JSON Parser

2011-09-08 Thread Tom Hohensee
differences between the two but I should be ok as the JSON responses are short and request are few. Thanks for the responses Tom On Sep 8, 2011, at 1:37 PM, Jens Alfke wrote: On Sep 8, 2011, at 10:25 AM, Tom Hohensee wrote: I have recently come across the need to handle JSON

Re: Scanning images

2011-08-09 Thread Tom Hohensee
Ikscannerdevice (part if image kit) and its related classes is the new method going forward. There is a drop in IB solution. Double check 10.5 compatibility. Really easy. Sent from my iPhone On Aug 9, 2011, at 10:43 AM, Eric Matecki eml...@wanadoo.fr wrote: Hi Tom, Yes I'm talking about

Re: IKImageBrowserView

2011-08-09 Thread Tom Hohensee
How are you handling the drag operation? Sent from my iPhone On Aug 9, 2011, at 2:49 PM, koko k...@highrolls.net wrote: I have implemented - (void) imageBrowser:(IKImageBrowserView *) view removeItemsAtIndexes: (NSIndexSet *) indexes and - (BOOL) imageBrowser:(IKImageBrowserView *)

Issues where code produced in Snow Leopard won't work in Lion, but will compile in Xcode 4.1

2011-07-30 Thread Tom Miller
of release mode with it properly pointing to the correct object in IB. - Tom Miller Pixelogic Software t...@pxlc.me ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

drawRect not getting called problem solved

2011-07-28 Thread Tom Jeffries
I appreciate all the comments on the problem I had with drawRect not getting called. I finally extracted the code that was not working and put it in a new program, and it worked perfectly. I'm still not sure whether there was a problem in my code or if I unearthed a problem in Cocoa, but I'm now

More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
I appreciate the answers, so far everything that's been suggested is something I've tried. Maybe if I put the code out somebody will see what I'm doing wrong: This is the function that is called by the mouse click, it's in another module: + (BOOL) Play { // init code [SequeraStepWindow

Re: More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
. Thanks, Tom On Sun, Jul 24, 2011 at 10:45 AM, Jens Alfke j...@mooseyard.com wrote: On Jul 24, 2011, at 10:11 AM, Tom Jeffries wrote: + (BOOL) Play It’s hard to tell what’s going on in the code when you’re not following Cocoa naming conventions. Methods should start with a lowercase letter

Re: More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
Patrick, Everything works except that I can't get drawRect to be called a second time. I assume that means the IBOutlet is working. However, I think you're right that there's something about the interaction between the modules that is causing the problem. Thanks, Tom On Sun, Jul 24, 2011

Re: More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
it easier to understand what's going on. I've gotten several interesting hints from the comments, which I appreciate. I'm going to pursue them, if I don't find a solution I'll see if I can post a more understandable example. Thanks, Tom ___ Cocoa-dev mailing

drawRect not getting called when needed under OS X

2011-07-23 Thread Tom Jeffries
the button on the second window. I've tried awakeFromNib, setNeedsDisplay, needsDisplay, and display, but nothing I've found so far gets the NSView window to call drawRect. I am fairly new to OS X programming and appreciate any hints you can throw my way. Thanks, Tom Jeffries

Re: drawRect not getting called when needed under OS X

2011-07-23 Thread Tom Jeffries
wrote: On 24/07/2011, at 1:46 PM, Tom Jeffries wrote: When I put both the beginning graphics and the graphics that are to be drawn later in the initial drawRect call everything is drawn without a problem. However, drawRect does not get called when the user clicks the button on the second

Re: standardDefaults

2011-07-21 Thread Tom Hohensee
Terminal commands to unhide user/Library in Lion chflags nohidden ~/Library/ chflags hidden ~/Library Tom Hohensee I'm not seeing a user/library/Preferences folder on Lion. Where are they hiding application pLists in Lion (searching for them doesn't find any). Tony 3CAAM

Building, installing, and testing drivers

2011-06-10 Thread Tom Jeffries
an install for the drivers? Thanks, Tom Jeffries ___ 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

Re: Cocoa-preferred licensing key style?

2011-05-29 Thread Tom Hohensee
http://www.aquaticmac.com/ Sent from my iPhone On May 29, 2011, at 6:58 PM, Todd Heberlein todd_heberl...@mac.com wrote: For Cocoa apps not distributed through the Mac App Store, is there a common/recommended design pattern for license keys? A little googling around I found common

IKScannerDeviceView transferMode set to memory

2011-05-26 Thread Tom Hohensee
I am currently rewiring a scanner application which I originally wrote some years ago using the TWAIN driver directly into the more modern ImageKit IKScannerDeviceView . I thought that I could customize it enough to meet my needs without having to build it using ImageCaptureCore framework with

Using an iPhone to control a Mac- source code?

2011-05-26 Thread Tom Jeffries
don't have to wade through the whole networking protocol. Suggestions? Thanks, Tom Jeffries ___ 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

Refreshing an NSView

2011-04-13 Thread Tom Jeffries
I seem to be missing something, and it's probably something quite obvious. In the initialization to an NSView subclass window, I do the following: - (void) drawRect:(NSRect)dirtyRect { [StepWindow DrawStepArea]; } DrawStepArea is a simple function that draws some lines on the screen-

Re: Mac App Store requirements

2011-04-10 Thread Tom Hohensee
Not yet. You have some setup work to do in itunesconnect. Apple provides a step by step guideline for submission Sent from my iPhone On Apr 10, 2011, at 2:28 PM, Artemiy Pavlov artemiy.pav...@ukrpost.ua wrote: I am aware of this, and I meant only the technical side. So I built a Cocoa app

Re: Mac App Store requirements

2011-04-10 Thread Tom Hohensee
Yes I second what Todd has said. I am currently working on receipt validation for my third app store app. I did not do it for my first two apps, too many other thinks to worry about. The documentation is not very good at this point. Tom On Apr 10, 2011, at 6:45 PM, Todd Heberlein

Keyboard handlers

2011-03-14 Thread Tom Jeffries
to trap events? NSEvent looks like it might work, is there any sample code I can reference? Thanks for any help, Tom Jeffries ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Printing Appears Very Small in Lower-Left Corner of Page

2011-02-08 Thread Tom dineen
with a lower ppi - which is as expected based on density of pixels. Sent on iPhone ( check spell Off, Auto Correction Off ) Tom Dineen On Feb 7, 2011, at 8:24 PM, Gerry Beggs gbeg...@mts.net wrote: Thanks Raleigh. I discovered a work-around. But there does appear to be a bug. This was difficult

Re: Calculate next occurrence of a NSDate

2010-12-31 Thread Tom Jones
release]; return newDate; } Thanks for the help, tom On Dec 31, 2010, at 6:46 AM, WT wrote: On Dec 31, 2010, at 12:24 PM, Ken Thomases wrote: On Dec 31, 2010, at 7:22 AM, WT wrote: The following is straight out of my code, and computes the next Wed or Sat from a given date

Calculate next occurrence of a NSDate

2010-12-30 Thread Tom Jones
= 2010-12-31 -Answer I have not done this before so I'm not sure how to tackle this. 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

Re: Documentation Hard Copy?

2010-11-10 Thread Tom Davies
Followup: I got my hard copy from lulu.com today -- 628 pages of HIG/tutorial docs, perfect bound on A4 for USD22 + USD10 shipping to Australia (they may have printed it here, not sure). It's a chunky volume (reminds my of Inside Mac :-) but the per-volume costs discouraged me from printing the

Ping host and port

2010-11-07 Thread Tom Jones
Hello, I'm looking for a simple way to ping a host and a specific port on that host. I have SCNetworkCheckReachabilityByName working just fine but I really need to test to see if the port is active. Thanks, tom___ Cocoa-dev mailing list

Re: Ping host and port

2010-11-07 Thread Tom Jones
Thanks, yes its a tcp port. I tried this but for some reason port is always nil. NSSocketPort *port = [[NSSocketPort alloc] initRemoteWithTCPPort:3651 host:@localhost]; if(!port) { NSLog(@Port is open...); } else { NSLog(@Port is not open...); } [port release]; Thanks, tom On Nov 7

Re: Ping host and port

2010-11-07 Thread Tom Jones
Ops, thanks! I have not really done much with sockets. Is there an example you know of that I can learn from? Thanks, tom On Nov 7, 2010, at 2:14 PM, Dave Carrigan wrote: On Nov 7, 2010, at 2:02 PM, Tom Jones wrote: Thanks, yes its a tcp port. I tried this but for some reason port

Re: Ping host and port

2010-11-07 Thread Tom Jones
thanks a bunch, this is great! tom On Nov 7, 2010, at 2:40 PM, Dave Carrigan wrote: On Nov 7, 2010, at 2:31 PM, Kyle Sluder wrote: On Nov 7, 2010, at 2:24 PM, Tom Jones tjo...@acworld.com wrote: Ops, thanks! I have not really done much with sockets. Is there an example you know

Re: NSError help

2010-10-25 Thread Tom Jones
type. forKey:NSLocalizedDescriptionKey]; *err = [NSError errorWithDomain:@DataForType code:1 userInfo:errorDetail]; } return nil; Thanks for the help, tom - Original Message - From: Ken Thomases k...@codeweavers.com To: Tom Jones tjo...@acworld.com Cc: cocoa-dev@lists.apple.com Sent

NSError help

2010-10-24 Thread Tom Jones
Hello, I'm trying to understand why I'm getting thrown in to the debugger when using NSError. I have three methods and I'm overloading them and trying to pass the NSError along the way. What am I doing wrong? Thanks, tom Code: -(NSString *)getDataForType:(NSString *)aType error:(NSError

Documentation Hard Copy?

2010-10-06 Thread Tom Davies
I like the Apple developer documentation, but I would like it in printed form -- I just find I absorb the tutorials better that way. Is it available as hard copy? Alternatively, would the licence it's provided under allow me to print the PDF documentation via a print on demand provider like

Convert CFURLRef to NSURL

2010-09-12 Thread Tom Jones
Hello, I have been googling on how to convert a CFURLRef to NSURL. But it always seems to be the oposite that people are searching for. Thanks, tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Recursive file remove

2010-08-14 Thread Tom Jones
Hello, What is the best way to recursively remove a directory and all of it's sub directories and files, BTW I need to support 10.4 systems. Thanks, tom___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Recursive file remove

2010-08-14 Thread Tom Jones
as part of NSFileManager to remove items recursively like removeItemAtPath:recursive:error: for example. I mean Mac OS X is over 10 years old. :-) Thanks, tom On Aug 14, 2010, at 8:02 AM, Jerry Krinock wrote: As noted, your choices are either NSFileManager methods of BSD/POSIX functions. I

Re: Recursive file remove

2010-08-14 Thread Tom Jones
system and on 10.5 and higher I'm using NSFileManager. Thanks, tom On Aug 14, 2010, at 2:33 PM, Charles Srstka wrote: On Aug 14, 2010, at 4:01 PM, lbland wrote: On Aug 14, 2010, at 2:28 PM, Tom Jones wrote: Thanks, this helps a lot. What I'm looking to remove is my temp directory where

Unzip class/lib

2010-08-13 Thread Tom Jones
Hello, I have been googling for a little while now and I'm not finding the answers. Does Mac OS X have a unzip library to unzip the archives created in the GUI. I guess I could do the NSTask thing but I would rather not. I would also like to avoid a framework as well as my app is a Foundation

Adding attributes to NSMutableAttributedString

2010-06-14 Thread Tom Korsgren
since the code is nearly identical to examples I found in different documentations. 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

CoreData Object with transient attributes faulting after sync

2010-05-05 Thread Tom Fewster
to MO's with transient attributes (it may happen with others, I just haven't experienced it)? - Is there anyway to prevent this from happening e.g. change the merge policies on the NSManagedObjectContext? Hope I have made my problem clear. Thanks, Tom

NSTask objectalloc problem

2010-04-29 Thread Tom Foutz
be initiated on another thread. Perhaps one solution would be to keep track of the thread instance, and to not create another NSThread job if the first had not yet finished? Thanks! -- Tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSTask objectalloc problem

2010-04-29 Thread Tom Foutz
Worked like a charm. I used waitUntilExit, and the number of living objects dropped immediately. Thanks! -- Tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSManagedObject awakeFromFetch not sent on secondary thread?

2010-03-16 Thread Tom
can't find any clue in documentation? Is this a bug or is it a feature? I'm running on 10.6.2. Thanks, Tom On 15 March 2010 20:36, Ben Trumbull trumb...@apple.com wrote: Does the secondary thread have its own private NSManagedObjectContext that you are using for the fetch, or are you fetching

Re: Core Animation and interaction

2010-03-16 Thread Tom
). You can represent each photo in a separate layer so you can move it arround as needed. You can also group layers if needed. Check Apple's documentation on CA, I also recommend Bill Dudley's Core Animation book from pragmatic programmers. Tom ___ Cocoa

Cacheing optimisation in valueForKey:

2010-03-14 Thread Tom
undocumented methods I could call to invalidate the cache used by valueForKey:? Is there a way to disable the cacheing? Nasty hack solutions are welcome, as the code is experimental anyway. --Tom ___ Cocoa-dev mailing list (Cocoa-dev

Re: Xcode 3.2.1 and OCUnit results in selector not recognized

2010-03-07 Thread Tom
for sure, but until now it feels much more reliable than OCUnit. 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

Xcode 3.2.1 and OCUnit results in selector not recognized

2010-03-05 Thread Tom
of OCUnit, so it probably suffers from the same problem, don't know). Any advice would be greatly appreciated... Thanks, Tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Cocoa equivalent for 'InstallApplicationEventHandler'

2010-02-20 Thread Tom Davie
You want NSEvent's + (id)addGlobalMonitorForEventsMatchingMask:(NSEventMask)*mask* handler:(void (^)(NSEvent*))*block* *and* * + (id)addLocalMonitorForEventsMatchingMask:(NSEventMask)mask handler:(NSEvent* (^)(NSEvent*))block Bob * On Sat, Feb 20, 2010 at 11:45 AM, Vikram Sethi

Open panel is permanently dead?

2010-02-19 Thread Tom Davie
:) contextInfo:nil]; [compressingProgress startAnimation:self]; } }];} Thanks Tom Davie ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Overriding NSMenuItem's drawing

2010-02-17 Thread Tom Davie
I need an NSMenuItem that rather than drawing an NSImage in it's cell draws *part* of an NSImage, is it possible to override NSMenuItem's drawing in any way to achieve this? I don't see the relevant methods. Thanks Tom Davie ___ Cocoa-dev mailing

Bizarre locking issue

2010-01-24 Thread Tom Davie
== 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 stack trace when the lock error is logged (breaking on _NSLockError doesn't work) #0

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 edole...@gmail.com wrote: I'm not combining two or more images, I merely would like a single uiimage in a uiimageview to have a blend

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

Binding NSPopUpButton selectedIndex with custom view for menu item

2010-01-06 Thread Tom
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/Unsubscribe/Update your

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

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

NSObjectController mapped to NSArrayController selection

2009-12-23 Thread Tom
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, Tom ___ Cocoa-dev mailing

Re: NSObjectController mapped to NSArrayController selection

2009-12-23 Thread Tom
could be the culprit. Any more ideas? Tomaz 2009/12/23 Quincey Morris quinceymor...@earthlink.net 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 thing, functionally

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

Re: Global Object

2009-11-28 Thread Tom Jones
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 variable but that does not work. Did you make

Global Object

2009-11-26 Thread Tom Jones
. 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 your

NSDecimal chokes on very small numbers

2009-11-21 Thread Tom Bernard
oneEminusThirtyFiveToFourthPower = 1000 0 err = 0 Tom Bernard tombern...@bersearch.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: extracting the mantissa for a NSDecimal

2009-11-21 Thread Tom Bernard
to 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: 6 Date

Re: extracting the mantissa for a NSDecimal

2009-11-20 Thread Tom Bernard
= [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, 29 Oct 2002 12:37:35 -0600

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

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 as well? Thanks, tom

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 davek...@gmail.com To: Tom Jones tjo...@acworld.com 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

Writing NSArray data to file, and compression

2009-10-11 Thread Tom Jones
. [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 compression? Thanks, tom

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

Re: NSTask launcing executable inside a bundle

2009-09-14 Thread Tom
for the future. Tom 2009/9/14 Dave Keck davek...@gmail.com 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 dataWithContentsOfFile: to make sure the path is in fact

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

2009-08-30 Thread Tom Maremaa
X, as well as how to deal with monitoring load state. -Tom Maremaa Apple Developer Documentation - QuickTime___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

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

Possible NSPredicateEditor bug

2009-07-02 Thread Tom
copy] autorelease]]; NSPredicate* compound = [NSCompoundPredicate orPredicateWithSubpredicates:subpredicates]; [m_predicateEditor setObjectValue:compound]; } Am I doing something wrong? --Tom ___ Cocoa-dev mailing list (Cocoa-dev

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 trying

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

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 graham@bigpond.com To: Tom Jones tjo...@acworld.com Cc: cocoa-dev@lists.apple.com Sent: Wednesday, June 24, 2009 7

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 trying

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 tejasvora.ap...@gmail.com: Thanks a lot

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 confusing

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

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: 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

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-topic

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

Code Signing Examples

2009-02-20 Thread Tom Fortmann
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 SOLUTIONS

RE: Code Signing Examples

2009-02-20 Thread Tom Fortmann
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 couple other processes

[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 expect

NSTextView and keyDown: in the responder chain

2009-02-11 Thread Tom
(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 moderator comments to the list. Contact

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

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

2009-02-09 Thread Tom Fortmann
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 not post admin requests

<    1   2   3   >