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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?).
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
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
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.
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
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
_
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
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
42 matches
Mail list logo