Re: CGDisplayRegisterReconfigurationCallback not called when view in fullscreen

2012-07-24 Thread Tom Hohensee
monitor is shown but the main screen on the built-in display is black). I have tried various presentation options but results are similar. Thanks Tom On Jul 24, 2012, at 8:09 PM, Ken Thomases wrote: > On Jul 24, 2012, at 7:47 PM, Tom Hohensee wrote: > >> Anyone f

CGDisplayRegisterReconfigurationCallback not called when view in fullscreen

2012-07-24 Thread Tom Hohensee
Anyone familiar with CGDisplayRegisterReconfigurationCallback callback and fullscreen when connecting and disconnecting an external monitor? I have written an application that places a custom NSView into fullscreen (using enterfullscreenmode with options) on an external monitor while the main w

Re: Base64 encoding of NSImage

2012-07-01 Thread Tom Hohensee
Try here. it is a category for nsdata in this post. http://www.thohensee.com/?page_id=435 Tom Sent from my iPhone On Jul 1, 2012, at 10:26 AM, Alexander Hartner wrote: I am looking at available option to send an NSImage to a webserver. I came across gSoap however its licensing model makes it

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

Re: IKImageBrowserView spinning animation on the Cell

2011-10-29 Thread Tom Hohensee
Create a CALayer with the spinning effects. and use the following IKImageBrowser cell Core Animation layer method. - (CALayer *)layerForType:(NSString *)type where NSString is a “Cell Layer Positions” type IKImageBrowserCellForegroundLayer. For the spinning effects layer have a look at http

Re: Best way to parse a time today?

2011-10-13 Thread Tom Hohensee
I use the same approach the Roger pointed out and have not encountered any problems as well. However, I not only set the time but the date (month, day, year) as well. The DST boundries should not matter since I am decomposing today's date [NSDate date], which is set by the end user's time se

Re: creating multiple NSTimers

2011-09-30 Thread Tom Hohensee
Thanks for the discussion. What I implemented last night was what Graham had suggested. I simply bind my table column values to an NSArrayController controller and observed by KVO in my set box object. It works great. I think this is also what Conrad had meant as well. Simply changing the t

Re: creating multiple NSTimers

2011-09-29 Thread Tom Hohensee
ll mean waking up the > thread more often than necessary. > > --Graham > > > On 30/09/2011, at 9:48 AM, Tom Hohensee wrote: > >> Sorry, I started this out wrong. I am probably over thinking this to the >> point of confusion. Here is where I am. >> I

Re: creating multiple NSTimers

2011-09-29 Thread Tom Hohensee
ll probably need an array or > dictionary, but if these timers are all one-shot and they configure the next > timer to execute, there seems little reason to maintain your own owning > reference to them... > > On Sep 29, 2011, at 3:06 PM, Tom Hohensee wrote: > >> Yes. Wh

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

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

JSON Parser

2011-09-08 Thread Tom Hohensee
I have recently come across the need to handle JSON in an application I am working on for 10.6 and 10.7. After googling for a parser I came across several of them but some look abandoned. I am unsure which to pick. Anyone know of a good current JSON parser for cocoa in 10.6 and 10.7? Thank

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

Re: Scanning images

2011-08-09 Thread Tom Hohensee
canner devices. > But I don't have to support versions EARLIER than 10.5, but from 10.5 to 10.7. > > So is it twain or ICA ? > Which one should have the longest life ? > > Thanks. > > Tom Hohensee wrote: >> If you are talking getting images from scanner device.

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

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

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

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 wrot

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: how would a beginner know about built-in outlets?

2010-05-10 Thread Tom Hohensee
Yes it is kind of odd. When I moved on from C to Objective-C and Cocoa I found there are many disconnects in the documentation. More specifically, IB and class documentation seems to not tie in very well just as you are pointing to in you question. I always figured it was because some co

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 to talk

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 to communica

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 w

Re: Making an NSButton appear selected.

2009-06-05 Thread Tom Hohensee
I think what you want is to set the button to enabled or not through the action of another button? Since NSButton is a subclass on NSControl you could use the setEnabled method. interface IBOutlet NSButton *Abutton; IBOutlet NSButton *Bbutton; implementation -(IBAction)someA

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: 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: launchd detecting when an application is running

2009-06-03 Thread Tom Hohensee
On Jun 3, 2009, at 5:23 PM, Dave Keck wrote: Sorry, that question really was bad. 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 detect events such as USB insertion and volume mounting to perform certain

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