UIView animation docs question

2009-11-03 Thread lorenzo7620
The documentation for setAnimationDidStopSelector in the XCode 3.2.1: says this: "...The message sent to the animation delegate after animations end. The default value is NULL. The selector should be of the form: - (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finish

Re: Re: UIView animation docs question

2009-11-03 Thread lorenzo7620
On Nov 3, 2009 5:08pm, Klaus Backert wrote: On 3 Nov 2009, at 23:23, lorenzo7...@gmail.com wrote: Here's the code: [UIView beginAnimations:@"display" context:NULL]; [UIView setAnimationDuration:0.30]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:

Re: Re: UIView animation docs question

2009-11-03 Thread lorenzo7620
On Nov 3, 2009 3:44pm, Fritz Anderson wrote: On 3 Nov 2009, at 3:29 PM, lorenzo7...@gmail.com wrote: The documentation for setAnimationDidStopSelector in the XCode 3.2.1: says this: "...The message sent to the animation delegate after animations end. The default value is NULL. The s

URLWithString fails to fails with bad string

2009-11-24 Thread lorenzo7620
This returns a non-nil value: NSURL * url = [NSURL URLWithString:@"sdsds"]; The docs say this should fail. RFC 1758 looks for the string to begin with a scheme, eg http: I would expect a malforrned string, ie, htt: to work, since URLWithString doesn't distinguish between "htt:" and "http:", b

Re: Re: URLWithString fails to fails with bad string

2009-11-25 Thread lorenzo7620
On Nov 25, 2009 2:06am, Kyle Sluder wrote: On Tue, Nov 24, 2009 at 10:14 PM, lorenzo7...@gmail.com> wrote: > This returns a non-nil value: > NSURL * url = [NSURL URLWithString:@"sdsds"]; > > The docs say this should fail. RFC 1758 looks for the string to begin with a > scheme, eg

Re: Re: URLWithString fails to fails with bad string

2009-11-25 Thread lorenzo7620
On Nov 25, 2009 10:36am, Jens Alfke wrote: On Nov 25, 2009, at 8:31 AM, lorenzo7...@gmail.com wrote: > So is there a way to validate a string before passing it to URLWithString? Depends on what you want to do. If you want URLs of a specific scheme, check the -scheme property of the

Re: Re: URLWithString fails to fails with bad string

2009-11-25 Thread lorenzo7620
On Nov 25, 2009 11:05am, Jens Alfke wrote: On Nov 25, 2009, at 8:59 AM, lorenzo7...@gmail.com wrote: > Thanks for the reply. I'm looking through the Cocoa API now. I think I might be able to use NSNetService's -resolveWithTimeout along with NSURL's -scheme to validate a string. Seems l

Re: Re: URLWithString fails to fails with bad string

2009-11-25 Thread lorenzo7620
On Nov 25, 2009 11:34am, Dave Carrigan wrote: On Nov 25, 2009, at 9:28 AM, lorenzo7...@gmail.com wrote: > I was just looking through the API to see what methods might help me with this and NSNetService looked like it might work, until I read the class description. What I'm doing exactl

Simulating app termination

2010-06-01 Thread lorenzo7620
I have an application that needs to display a message when it quits. Its not a LSUIElement or LSBackgroundOnly, just a faceless app that displays a message and plays a sound at computer restart/shutdown. The sound plays every time, but I don't always see the dialog, maybe 1 in 5 times. My q

Re: Re: Simulating app termination

2010-06-01 Thread lorenzo7620
On Jun 1, 2010 2:16pm, John Joyce wrote: On Jun 1, 2010, at 2:09 PM, has wrote: > lorenzo7620 wrote: > >> My question at this point is not about the dialog not displaying, not yet >> anyway, but how to tell my app to quit without actually restarting or &g

Re: Re: Re: Simulating app termination

2010-06-01 Thread lorenzo7620
On Jun 1, 2010 2:26pm, Kyle Sluder wrote: On Tue, Jun 1, 2010 at 12:22 PM, lorenzo7...@gmail.com> wrote: >> Can you elaborate on this? man kill Can you elaborate on why the standard Quit Apple Event isn't working in your app? AppKit understands it and turns it into a regular t

Displaying dialog at shutdown

2010-06-02 Thread lorenzo7620
I have a very simple application that runs as an LSUIElement/BackgroundOnly. Its only purpose is to display a message and play a short sound (3 seconds) to the user whenever it quits, which, since its a background only app, is only at shutdown/restart. I can use an AppleScript to force the

Re: Re: Displaying dialog at shutdown

2010-06-02 Thread lorenzo7620
On Jun 2, 2010 11:22am, Jens Alfke wrote: On Jun 2, 2010, at 9:13 AM, lorenzo7...@gmail.com wrote: I can use an AppleScript to force the app to quit and when doing that, I see the dialog every time, but if I actually restart the computer, I only see the dialog, maybe 1 out of 5 times. T

Creating Photoshop plugins

2010-06-07 Thread lorenzo7620
Can someone point me to documentation on how to create a Photoshop plugin in XCode? I've found bits and pieces about the internet, but nothing that gives a clear understanding of how to go about it. The Photoshop SDK and samples seem to come from the days when Gil Amelio was in charge at Appl

Tracking multiple NSURLConnections

2010-06-29 Thread lorenzo7620
I have and app that needs to send out multiple connection attempts. NSURLConnection doesn't appear to allow one to distinguish between connections. I found a couple of posts at cocoabuilder that provide some guidance, but I wanted to ask about my approach. I'm writing for 10.6, so I'm using

Re: Re: Tracking multiple NSURLConnections

2010-06-29 Thread lorenzo7620
And maybe store the connection objects in a container? An NSArray or maybe an NSDictionary? On Jun 29, 2010 11:23am, Alexander Spohr wrote: Not sure if I understood the problem. But why not just use the NSURLConnection objects themselves? The delegate methods give you the corresponding NS

Re: Re: Tracking multiple NSURLConnections

2010-06-29 Thread lorenzo7620
So then if I do this: NSURLConnection * conn_1 = [[NSURLConnection alloc] initWithRequest:request_1 delegate:delegate startImmediately:startImmediately]; NSURLConnection * conn_2 = [[NSURLConnection alloc] initWithRequest:request_2 delegate:delegate startImmediately:startImmediately]; G

Re: Re: Tracking multiple NSURLConnections

2010-06-29 Thread lorenzo7620
Now, a devil's advocate question: If I have lots of connections, say two dozen, or say I'm spawning connections continuously, would this be the most efficient way of doing this? I'd likely store them in an NSArray and iterate/compare until I find the right one. There could be lots of compari

Re: Re: Tracking multiple NSURLConnections

2010-06-29 Thread lorenzo7620
OK, makes sense. But is what I've done so wrong or is it just that there are better ways? On Jun 29, 2010 2:11pm, Dave DeLong wrote: If you're spawning dozens of connections, you may want to consider giving each one a separate delegate object and encapsulating that connection's specific l

Sending email with attachments

2011-02-01 Thread lorenzo7620
How can one go about doing this and support 10.4-10.6? There are links all over the place pointing to deprecated API's (NSMailDelivery) or frameworks that are 10.5+ (EDMessage, Scripting Bridge), but nothing I can use. All I want to do is open the default mail application, create a new messag

NSDateFormatter misbehaving

2011-02-02 Thread lorenzo7620
Here is the code I'm using to format a date string: NSDate *date = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateStyle:NSDateFormatterBehavior10_4]; [dateFormatter setDateStyle:NSDateFormatterShortStyle]; // check placed here [dateFormatte

Re: Re: NSDateFormatter misbehaving

2011-02-02 Thread lorenzo7620
On Feb 2, 2011 3:18pm, Ken Thomases wrote: On Feb 2, 2011, at 3:14 PM, lorenzo7...@gmail.com wrote: > Here is the code I'm using to format a date string: > > > NSDate *date = [NSDate date]; > > NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; > [dateFormatt

NSSearchfield help

2011-02-09 Thread lorenzo7620
I have a NSTableView populated by an NSArrayController. Above the table, I have an NSToolbar, to which I would like add the ability to search. I have found a couple of examples of implementing search using an NSSearchField, but the two that I have found both display the results in a dropdown

Re: Re: Binding multiple NSTableView and NSPopupButton to an NSArrayControler

2011-05-02 Thread lorenzo7620
On May 2, 2011 12:03pm, Quincey Morris wrote: On May 2, 2011, at 08:02, Lorenzo Thurman wrote: > I have an NSPopupButton whose content is bound to an NSArrayController's (controller A) arrangeObjects controller Key. This NSArrayController is bound to an NSMutableArray which holds the ite

Adding and editing a multi column row in NSTableView

2011-07-07 Thread lorenzo7620
I have an NSTableView whose columns are bound to an NSArrayController. The data displays correctly in the table and I can edit the individual cells; all good there. But, when I programmatically add a new item to the controller, a new row is added at the bottom of the table. This is not what

NSSearchField and bindings question

2010-01-03 Thread lorenzo7620
I'm going the Zarra book, "Core Data" and I;ve reached the section where an NSSearchfield is bound to one of the arrays used in the sample application (page 43). As instructed in the book, I configured the NSSearchfield's predicate binding as follows: Controller Key: filterPredicate Model Ke

Re: Re: NSSearchField and bindings question

2010-01-04 Thread lorenzo7620
On Jan 4, 2010 5:15pm, Saurabh Sharan wrote: You're not alone -- happened to me too. Though, when I downloaded the code from pragprog.com, it worked. - Saurabh On Sun, Jan 3, 2010 at 10:11 PM, lorenzo7...@gmail.com> wrote: I'm going the Zarra book, "Core Data" and I;ve reached the secti

Problem creating Core Data mapping file

2010-01-07 Thread lorenzo7620
This is my first foray into Core Data, so forgive me if I've missed something basic. I'm adding a new model version to my project and so far I've done this: Added a new model version Set the current version to my new version Now I want to add a new mapping model to the project. I select "New F

Localization help

2010-01-27 Thread lorenzo7620
I'm not sure if this is an XCode or Cocoa issue, so I'm going to post this question on both lists: I'm adding localization strings to my application. So far, I've added Spanish, French, Italian and English Localizable.strings. When I change languages, everyone one of them works except, Italia

Re: Re: Localization help

2010-01-27 Thread lorenzo7620
On Jan 27, 2010 7:51am, Steve Bird wrote: On Jan 27, 2010, at 8:42 AM, lorenzo7...@gmail.com wrote: I'm not sure if this is an XCode or Cocoa issue, so I'm going to post this question on both lists: I'm adding localization strings to my application. So far, I've added Spanish, Frenc

Instruments and over released objects

2009-06-09 Thread lorenzo7620
Can Instruments be used to track over released objects in a thread other than the main thread? The reason I ask is that I was trying to find an over released object in my project, but could not find it using Instruments. I eventually found it the hard way, but I've used Instruments before to

Unit testing question

2009-07-24 Thread lorenzo7620
I'd like to add unit testing to my app, but I'ma little bit unclear on the concept. I've looked at Apple's docs on the Sentest framework and had no trouble getting the sample project working, but I lose it when translating the concepts to my particular application. I've seen some sample proje

Using multiple fonts in a UITextView

2009-08-28 Thread lorenzo7620
I'd like to use two different fonts in a UITextView, in much the same way a UITableviewCell has its detailTextLabel. My ultimate goal is to create a table cell that can handle multiple lines of text and an additional 'detailtextLabel' in a different font, while still maintaining the datadet

Re: Re: NSTimer firedate randomly changes

2010-11-18 Thread lorenzo7620
Thanks everyone for all the replies. I've read through the docs again (its been years since I first set this up) and think I have a better understanding of how timers should work. I see now that the timer will fire once the computer is awakened from sleep, but it does take some time, maybe

Re: Re: Keeping data in sync across Mac and iPhone

2010-11-24 Thread lorenzo7620
On Nov 24, 2010 11:48am, Nick Zitzmann wrote: On Nov 24, 2010, at 9:28 AM, Lorenzo Thurman wrote: > I have a customer request to sync application preferences between Macs and > iPhone. The user may not have a MobileMe account, so Sync Services is not an > option (or is it?).

NSToolbar help

2010-12-19 Thread lorenzo7620
I'm trying to add an NSToolbar to an existing application. I need compatibility with 10.4, so I'm creating the toolbar programmatically, initializing and configuring the toolbar in my -init. On launch, the toolbar does not appear and none of its delegate methods are called even though I set

Re: NSToolbar help

2010-12-19 Thread lorenzo7620
On Dec 19, 2010 1:48pm, k...@highrolls.net wrote: toolbarAllowedItemIdentifiers should return the array of allowed items ... returning nil says there are not items, ergo no toolbar! On Dec 19, 2010, at 12:20 PM, lorenzo7...@gmail.com wrote: toolbarAllowedItemIdentifiers Thanks for the

NSKeyedArchiver on iOS and Cocoa

2010-12-20 Thread lorenzo7620
Are these two compatible? Can something archived one platform be unarchived on the other? I can't find anything in docs that addresses this, but I'm havig trouble doing precisely this (archived on iPhone, unarchived on MacOSX). I get the NSInvalidUnarchiveOperationException.

Re: Re: NSKeyedArchiver on iOS and Cocoa

2010-12-20 Thread lorenzo7620
On Dec 20, 2010 9:43pm, Ricky Sharp wrote: On Dec 20, 2010, at 8:22 PM, lorenzo7...@gmail.com wrote: > Are these two compatible? Can something archived one platform be unarchived on the other? I can't find anything in docs that addresses this, but I'm havig trouble doing precisely this

Messaging framework

2008-12-24 Thread lorenzo7620
Anyone have any recommendations on a messaging framework for sending email? I had been using NSMailDelivery, but that's now deprecated, so I have to look elsewhere. I looked a EDMessage, but that does not support GC just yet, so I'm stuck. Thanks _

NSMailDelivery API

2009-02-17 Thread lorenzo7620
I know it's deprecated and not a public API, but my usage of this it is very limited. Now, I've written an app which uses it to send an email. This works just fine on my computer, but on my father's computer, it fails. (I need to get his IP address so I can remotely manage it). The API does n

Creating icons and other resources

2008-10-25 Thread lorenzo7620
I hope this is appropriate the list, if not, my apologies. I was wondering how people go about creating the artwork that goes into their applications. I don't have a professional budget, and do things myself, but I'm not an artist, so my creative skills are limited. I see many of the apps lis