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

Cacheing optimisation in valueForKey:

2010-03-14 Thread Tom
e any way around this? Are the any 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 ___ Coc

NSManagedObject awakeFromFetch not sent on secondary thread?

2010-03-14 Thread Tom
Fetch supposed to be sent when fetching on secondary thread? 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.appl

Re: Cacheing optimisation in valueForKey:

2010-03-14 Thread Tom
> On Sun, Mar 14, 2010 at 3:23 AM, Tom wrote: >> Is there any way around this? Are the any 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 ex

Re: NSManagedObject awakeFromFetch not sent on secondary thread?

2010-03-16 Thread Tom
omFetch is not sent in secondary thread - I 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 wrote: > > Does the secondary thread have its own private NSManagedObjectContext that &g

Re: Core Animation and interaction

2010-03-16 Thread Tom
his (you can use zPosition for layering). 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 Animati

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

Xcode 3.2.1 and OCUnit results in selector not recognized

2010-03-05 Thread Tom
ce files directly, however it's only a superset 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

Re: Xcode 3.2.1 and OCUnit results in selector not recognized

2010-03-07 Thread Tom
can't tell 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-admin

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

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

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

HIThemeGetTextDimensions problems

2016-04-22 Thread Tom Doan
,&cgwidth,NULL,NULL); itsWidth = cgwidth; } Best regards, Tom Doan Estima --- 1560 Sherman Ave #1029 Evanston, IL 60201 USA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

NSAlert and threading

2016-05-23 Thread Tom Doan
a separate thread), the alert box stays on the screen until the operation is done. release doesn't work. orderout on the window doesn't work. Is there any way to do this (other than changing the threading) so the alert box goes away when I'm done with it? Best regards, Tom Doa

Gestures cause crash in Sierra

2016-11-23 Thread Tom Doan
tly appreciated. Best regards, Tom Doan Estima --- 1560 Sherman Ave #1029 Evanston, IL 60201 USA Process:   RATSPro [986] Path:  /Applications/RATS Pro 9.1/RATSPro.app/Contents/MacOS/RATSPro Identifier:   com.estima.rats Version:   9.10.5 (1) Code T

Re: Gestures cause crash in Sierra

2016-11-30 Thread Tom Doan
er is sent to it) which causes the crash. Replacing the origin with 0.0,0.0 fixes the problem, but that doesn't help with our existing software. > On Nov 23, 2016, at 13:32 , Tom Doan wrote: > > > > OS Version:Mac OS X 10.12 (16A323) > > I´d suggest you try

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

NSTask objectalloc problem

2010-04-29 Thread Tom Foutz
er sync job would 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.app

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 the

CoreData Object with transient attributes faulting after sync

2010-05-05 Thread Tom Fewster
only happen 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 pro

Re: how would a beginner know about built-in outlets?

2010-05-10 Thread Tom Hohensee
first then googling from there if needed. Tom On May 10, 2010, at 7:31 PM, Matt Neuburg wrote: I've been thinking about how to explain to a beginner that some classes have built-in outlets, and it strikes me that the documentation falls down here. For example, you know and I know t

Adding attributes to NSMutableAttributedString

2010-06-14 Thread Tom Korsgren
0x30b0 I can't understand what's wrong 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

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 wrote: > Hi Tom, > > Yes I'm talking about s

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 wrote: > I have implemented > > - (void) imageBrowser:(IKImageBrowserView *) view removeItemsAtIndexes: > (NSIndexSet *) indexes > > and > > - (BOOL) imageBrowser:(IKImageBrowserView *) aBrowser moveI

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 ha

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 finit

Re: creating multiple NSTimers

2011-09-29 Thread Tom Hohensee
ether. 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 wi

Re: creating multiple NSTimers

2011-09-29 Thread Tom Hohensee
he NSTimer 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 l

Re: creating multiple NSTimers

2011-09-30 Thread Tom Hohensee
this set top box project 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 update

Re: Best way to parse a time today?

2011-10-13 Thread Tom Hohensee
x27;s time settings in system preferences. Is this not correct? Thanks. Tom On Oct 12, 2011, at 9:01 PM, Roger Dalal wrote: > Dave: > > Would it be possible for you to present an improved approach, please? I use > this solution frequently, and have not yet encountered any issues,

Re: IKImageBrowserView spinning animation on the Cell

2011-10-29 Thread Tom Hohensee
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 (Co

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" 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 m

awakeFromInsert called twice with nested contexts

2011-11-17 Thread Tom Harrington
umented to be called only once in the object's lifetime, I'm wondering if this is a Core Data bug or a documentation bug. Has anyone else seen this? -- Tom Harrington atomicb...@gmail.com AIM: atomicbird1 ___ Cocoa-dev mailing list (Cocoa-

Re: awakeFromInsert called twice with nested contexts

2011-11-27 Thread Tom Harrington
On Sat, Nov 19, 2011 at 6:49 PM, Roland King wrote: > > On Nov 20, 2011, at 5:48 AM, Jerry Krinock wrote: > >> >> On 2011 Nov 16, at 17:16, Tom Harrington wrote: >> >>> I'm finding that if I use nested managed object contexts, >>> awakeFromInse

Re: awakeFromInsert called twice with nested contexts

2011-11-27 Thread Tom Harrington
On Sun, Nov 20, 2011 at 2:34 PM, Richard Somers 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 NSManagedObject

Re: awakeFromInsert called twice with nested contexts

2011-11-27 Thread Tom Harrington
On Sun, Nov 27, 2011 at 6:09 PM, Quincey Morris 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 the address

Re: Carousel - like control for Mac OS

2011-12-20 Thread Tom Hohensee
Have a look at iCarousel. Has a port for iOS as well as Mac OS. This can be done with ImageKit in IB as well. Just disable the scroll view and setup forward and back buttons that call the image index (nextIndex, etc). See imageKit docs. Tom On Dec 20, 2011, at 3:00 PM, Nick wrote

Core Data ignoring validation constraint

2012-01-09 Thread Tom Harrington
mediately. Is there some additional step I've missed? I'm using Xcode 4.2.1 on Mac OS X 10.7.2; results are the same in the simulator and on an iPhone 4s running iOS 5.0.1. -- Tom Harrington atomicb...@gmail.com AIM: atomicbird1 ___ Co

Using custom controls on top of custom graphics

2012-02-07 Thread Tom Jeffries
c for the slider area and for the knob. Can someone point me to some source code that shows how to do this? Thanks, Tom Jeffries ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

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

2011-02-08 Thread Tom dineen
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 wrote: > Thanks Raleigh. > I discovered a work-around. But there does appear to be a bug. > > This was difficu

Keyboard handlers

2011-03-14 Thread Tom Jeffries
ay 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. Co

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 wrote: > I am aware of this, and I meant only the technical side. So I built a Cocoa > app with XCode, so I can joi

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

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- here's

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
so I 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

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 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 locations were: >/Libr

Building, installing, and testing drivers

2011-06-10 Thread Tom Jeffries
s - How do I build 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)l

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). &

drawRect not getting called when needed under OS X

2011-07-23 Thread Tom Jeffries
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, To

Re: drawRect not getting called when needed under OS X

2011-07-23 Thread Tom Jeffries
t; 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

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 DrawCu

Re: More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
a question here. Thanks, Tom On Sun, Jul 24, 2011 at 10:45 AM, Jens Alfke 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

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,

Re: More on drawRect not getting called

2011-07-24 Thread Tom Jeffries
nventions. However, I do understand that using them would make 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 unde

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

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
ug mode 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. C

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

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

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 ___ Co

Open panel is permanently dead?

2010-02-19 Thread Tom Davie
modalDelegate:self didEndSelector:@selector(compressionSheetDidEnd:) contextInfo:nil]; [compressingProgress startAnimation:self]; } }];} Thanks Tom Davie ___

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 wrote: > Hi, >

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

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

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 to

Recursive file remove

2010-08-13 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 modera

Re: Recursive file remove

2010-08-14 Thread Tom Jones
#x27;m surprised that there isn't a task 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,

  1   2   3   >