Re: Problems with UIButton still calling renamed method

2010-06-29 Thread Laurent Daudelin
On Jun 29, 2010, at 02:32, Alexander Spohr wrote: >>> - Change the layout. Does it reflect in the simulator? > >> The new button I put in my view didn't have any title. When I built and ran >> my app, the button automagically had "Sign in" as its title! > > Did you actually move the button to

Re: Problems with UIButton still calling renamed method

2010-06-29 Thread Laurent Daudelin
On Jun 29, 2010, at 02:32, Alexander Spohr wrote: >>> - Change the layout. Does it reflect in the simulator? > >> The new button I put in my view didn't have any title. When I built and ran >> my app, the button automagically had "Sign in" as its title! > > Did you actually move the button to s

Re: Problems with UIButton still calling renamed method

2010-06-29 Thread Alexander Spohr
Usually this happens when you localize an unlocalized version. Then you have the nib inside English.lproj and in the apps directory you still have the nib as a global resource because Xcode does not delete the now localized resources. You said you deleted the build-directory - obviously you did

Re: Problems with UIButton still calling renamed method

2010-06-29 Thread Laurent Daudelin
Nope, that doesn't work. I did follow your instructions very carefully. I did open my project, localized my xib files. Then, in the Finder, I did delete the build folder. I then went back to Xcode and opened from there the now localized xib in Interface Builder which was not running. I then did

Re: Problems with UIButton still calling renamed method

2010-06-29 Thread Laurent Daudelin
I think I found it. The simulator. It seems that Xcode doesn't replace the copy of the app there and I'm guessing the app will always default to the non-localized xib files if present. As soon as I deleted my app from the simulator, made my files localizable again and did a build, my changes wer

How to revert to an unedited document & window?

2010-06-29 Thread Brad Stone
I have a subclassed windowController that has an associated core data managedObject called "note", a managedObjectContext and a NSPersistendDocument. Sometimes I need to reset everything back to the last time the doc was saved and make the doc clean (isDocumentEdited == NO) so that when I close

Redirect NSLog to stdout?

2010-06-29 Thread Tito Ciuro
Hello, I have written a small app which gets launched when SuperDuper has finished backing up my data. The problem is that since NSLog() writes to stderr, SuperDuper treats this as an error. The advice I've been given is to redirect NSLog() to stdout. One possible solution I can think of is the

Re: Redirect NSLog to stdout?

2010-06-29 Thread Graham Cox
On 30/06/2010, at 12:09 AM, Tito Ciuro wrote: > I have written a small app which gets launched when SuperDuper has finished > backing up my data. The problem is that since NSLog() writes to stderr, > SuperDuper treats this as an error. The advice I've been given is to redirect > NSLog() to std

Re: Redirect NSLog to stdout?

2010-06-29 Thread Kyle Sluder
On Tue, Jun 29, 2010 at 7:09 AM, Tito Ciuro wrote: > I have written a small app which gets launched when SuperDuper has finished > backing up my data. The problem is that since NSLog() writes to stderr, > SuperDuper treats this as an error. The advice I've been given is to redirect > NSLog() to

iPhone simple 'cartoon' animation

2010-06-29 Thread Roland King
I'm working with a bunch of guys who are really flash animators (but they are very nice people and do good work) and talking about how to do some simple cartoon style animations for an iOS app. This would be minimal animation, hit a button and have a character do something which takes 1-2 second

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: iPhone simple 'cartoon' animation

2010-06-29 Thread David Duncan
On Jun 29, 2010, at 8:10 AM, Roland King wrote: > One option would be to use a UIImageView with a series of images, or, if I > want finer control, a timer to switch images in and out of a custom subclass > of UIImageView. You probably don't need a subclass of UIImageView, but for simple animat

Re: How to revert to an unedited document & window?

2010-06-29 Thread Jerry Krinock
On 2010 Jun 29, at 05:23, Brad Stone wrote: > Using [NSPersistentDocument revertToContentsOfURL:(NSURL > *)inAbsoluteURLofType:(NSString *)inTypeName error:(NSError**)outError] works > except the window closes and opens. If that didn't happen I'd be fine. Reverting a Core Data document is tri

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Alexander Spohr
Not sure if I understood the problem. But why not just use the NSURLConnection objects themselves? The delegate methods give you the corresponding NSURLConnection. atze Am 29.06.2010 um 18:00 schrieb lorenzo7...@gmail.com: > I have and app that needs to send out multiple connection att

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: Tracking multiple NSURLConnections

2010-06-29 Thread Dave Carrigan
- (void)connection:(NSURLConnection*)connection didReceiveData:(NSData*)data { if (connection == conn_1) { // Handle conn_1 connection } else if (connection == conn_2) { // Handle conn_2 connection } } On Jun 29, 2010, at 11:53 AM, lorenzo7..

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Scott Anguish
store the conn_1/conn_2 variables someplace. Then you compare them to the one returned by the delegate method. On Jun 29, 2010, at 2:53 PM, lorenzo7...@gmail.com wrote: > So then if I do this: > > NSURLConnection * conn_1 = [[NSURLConnection alloc] initWithRequest:request_1 > delegate:delegat

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: Tracking multiple NSURLConnections

2010-06-29 Thread Dave DeLong
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 logic in that delegate. The url connection delegate might then have a weak pointer back to the original controller to notify when the connec

Subclass UIScrollView

2010-06-29 Thread Joshua Tucker
Hey guys, could someone please explain how I can subclass a UIScrollView, so I can do things like drawRect: etc. Thanks, Joshua Lee Tucker ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

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

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Dave DeLong
I wouldn't saw it's wrong, but separating logic definitely makes comprehension and implementation easier. Dave On Jun 29, 2010, at 1:23 PM, lorenzo7...@gmail.com wrote: > 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,

Re: Subclass UIScrollView

2010-06-29 Thread Fritz Anderson
On 29 Jun 2010, at 2:14 PM, Joshua Tucker wrote: > could someone please explain how I can subclass a UIScrollView, so I can do > things like drawRect: etc. 1. To simple-mindedly answer your question, you just declare your class, in its main @interface, to be a subclass of UIScrollView. Then imp

Re: Redirect NSLog to stdout

2010-06-29 Thread Heinrich Giesen
On 29.06.2010, at 18:12, Tito Ciuro wrote: ... Instead, is there a way to configure NSLog() so that it redirects to stdout instead of stderr? google for Quietlog NSLog and you find some hints ( this is one of them: http://borkware.com/ quickies/single?id=261 ) how to replace NSLog

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Scott Anguish
in that case you’d probably use an NSSet rather than an array On Jun 29, 2010, at 3:08 PM, lorenzo7...@gmail.com wrote: > 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

Re: Tracking multiple NSURLConnections

2010-06-29 Thread koko
For elucidation ... why an NSSet? -koko On Jun 29, 2010, at 1:44 PM, Scott Anguish wrote: in that case you’d probably use an NSSet rather than an array On Jun 29, 2010, at 3:08 PM, lorenzo7...@gmail.com wrote: Now, a devil's advocate question: If I have lots of connections, say two dozen, or

Re: Redirect NSLog to stdout?

2010-06-29 Thread Bill Garrison
On Jun 29, 2010, at 10:09 AM, Tito Ciuro wrote: [snip] > Instead, is there a way to configure NSLog() so that it redirects to stdout > instead of stderr? This might help. Bill __

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Scott Anguish
wait, sorry, not a set, a dictionary if you intend to have a data object related to the connection On Jun 29, 2010, at 4:08 PM, k...@highrolls.net wrote: > For elucidation ... why an NSSet? > > -koko > > On Jun 29, 2010, at 1:44 PM, Scott Anguish wrote: > >> in that case you’d probably use a

Re: Redirect NSLog to stdout?

2010-06-29 Thread Butch Anton
On 6/29/10 7:09 AM, "Tito Ciuro" wrote: [snip] > I don't really like it, since this forces me to use NSLogOut() everywhere... > which kinda sucks. Instead, is there a way to configure NSLog() so that it > redirects to stdout instead of stderr? Lifted from http://cocoaheads.byu.edu/wiki/differen

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Scott Anguish
you don’t need to enumerate, you simply would ask for the item in the set and it would return the object that you would then copy the data into On Jun 29, 2010, at 4:08 PM, k...@highrolls.net wrote: > For elucidation ... why an NSSet? > > -koko > > On Jun 29, 2010, at 1:44 PM, Scott Anguish wr

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Greg Guerin
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 comparisons. Use NSSet instead of NSArr

Re: Redirect NSLog to stdout?

2010-06-29 Thread Kyle Sluder
On Tue, Jun 29, 2010 at 1:15 PM, Bill Garrison wrote: > http://www.atomicbird.com/blog/2007/07/code-quickie-redirect-nslog Rather than redirect all calls to NSLog, if your intent it to redirect just your own logging information (which I would claim is more correct), you could use this asl_log tec

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Jens Alfke
On Jun 29, 2010, at 12:11 PM, 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 logic in that delegate. +1. I pretty much always make a class representing any sort

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Scott Anguish
That’s probably the best idea. On Jun 29, 2010, at 4:34 PM, Jens Alfke wrote: > > On Jun 29, 2010, at 12:11 PM, 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 >> spec

Re: CoreData and undo/redo : how to add a managed object with attributes already set in the undo/redo stack ?

2010-06-29 Thread Sean McBride
On Sat, 26 Jun 2010 19:08:29 -0700, Jerry Krinock said: >> Bottom line : is there a way to make it so that the CoreData object's >instantiation and its setup are registered as a single action in the >undo/redo stack ? > >I presume that you are setting these attributes in -awakeFromInsert. >One sol

Re: accessing core data sqlite from utility

2010-06-29 Thread Sean McBride
On Thu, 24 Jun 2010 17:57:16 -0700, Chris Idou said: >OK, my stupidity, I was looking at a NSBinaryStoreType and not sqlite. > >Next question: is there any utility for looking inside a NSBinaryStoreType? I don't think so. Sounds like maybe you should be using the XML store, it's handy when debug

Re: Redirect NSLog to stdout?

2010-06-29 Thread Tito Ciuro
Hello everyone, Thanks everyone that have responded. There are quite a few interesting options, some of which I didn't know. It looks like A.M. suggestion is the most interesting in my case, since I can create my own function and #define it as NSLog (that is, assuming there are no symbol confli

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Stevo Brock
You could also subclass NSURLConnection and add any additional data to your subclass that you can easily access in the callbacks. On Jun 29, 2010, at 12:11 PM, Dave DeLong wrote: > If you're spawning dozens of connections, you may want to consider giving > each one a separate delegate object an

iOS: CFReadStreamCreateWithFile non-exclusive file access?

2010-06-29 Thread John Michael Zorko
Hello, all ... I'm trying to implement a progressive download / cache using CFReadStreamCreateWithFile() to open a file URL that another thread is writing to. Basically, I have one thread with an NSURLConnection downloading a URL, and it's didReceiveData writes the data to the file via an NSFi

OpenAL and OGG

2010-06-29 Thread Development
Can open al not read ogg files? I'm attempting to load a short ogg clip and I keep getting random errors. getOpenALAudioData: ExtAudioFileOpenURL FAILED, Error = 1954115647 2010-06-29 15:13:53.965 MixPad[12402:207] error attaching audio to buffer: a003 this is the file loading code, it is dire

Re: OpenAL and OGG

2010-06-29 Thread Jens Alfke
On Jun 29, 2010, at 3:18 PM, Development wrote: > Can open al not read ogg files? I'm attempting to load a short ogg clip and I > keep getting random errors. OS X doesn’t ship with any codec for Ogg. It’s possible to install a 3rd party codec as a QuickTime or CoreAudio component, but I don’t

Re: using UTF-32 in NSString.

2010-06-29 Thread John Engelhart
On Sun, Jun 27, 2010 at 5:18 PM, Georg Seifert wrote: > Hi, > > Does anyone has information on how to use Unicode code points higher than > 0x. > I need to add some supplementary multilingual plane code points to a > NSString. > > I can use something like this: >NSString *aString = @"

Re: C arrays as __block variables

2010-06-29 Thread John Engelhart
On Sun, Jun 27, 2010 at 12:19 AM, Bill Bumgarner wrote: > > On Jun 26, 2010, at 9:14 PM, Tony Romano wrote: > > > That's why I asked for an example of what the op question is > > http://lists.apple.com/archives/cocoa-dev/2010/Jun/msg01040.html > > > This would seem to imply that a __block variabl

Re: [UPDATE] Applications using RegexKitLite no longer being accepted at the AppStore

2010-06-29 Thread John Engelhart
On Mon, Jun 14, 2010 at 8:36 PM, John Engelhart wrote: > Bad News, Everyone! -- Professor Farnsworth > > I've received nearly half a dozen reports that iOS4 applications using > RegexKitLite are now being rejected when they are submitted for AppStore > approval due to violating section 3.3.1. > >

CoraAudio contexts

2010-06-29 Thread Development
I'm creating an app the loads and plays multiple sounds mostly synchronously. Anyway I finally figured out that you create a single device. And then you render in to a context in that device. Now what I don't really understand, do I need to create a context for each sound or is the single contex

Re: Redirect NSLog to stdout?

2010-06-29 Thread Bill Garrison
ASL is the bee's knees. I made a wrapper framework around ASL logging a while back, after reading the boredzo blog articles. . Rentzsch's JRLog is also a good logging utility to take a look at. On Jun 29, 2010,

Re: NSOpenPanel won't allow selecting aliases

2010-06-29 Thread Seth Willits
On Jun 24, 2010, at 11:19 AM, Corbin Dunn wrote: >> Apparently I've never noticed that in my open panels, I can't select >> aliases. Say for instance that on my Desktop there is an alias to deeply >> nested folder. In the open panel, when it lists the Desktop folder's >> contents, the alias is

Re: CoraAudio contexts

2010-06-29 Thread Jens Alfke
On Jun 29, 2010, at 6:13 PM, Development wrote: > I'm creating an app the loads and plays multiple sounds mostly synchronously. > Anyway I finally figured out that you create a single device. And then you > render in to a context in that device. Now what I don't really understand, do > I need

How to retrieve a vCard during an ISyncSession?

2010-06-29 Thread unixo
Hi, I'm writing a sync client which pulls "Contacts" entity from sync server; an unique identifier is associated with each record: given an ID, is there a way to load the corresponding vCard from address book? Even if data are similar (except for suffix ":ABPerson"), I can't find a record usin

Re: How to retrieve a vCard during an ISyncSession?

2010-06-29 Thread Laurent Cerveau
Why would you want to retrieve the vCard? The sync engine can give you all attributes for a record. Or maybe AddressBook framework is more suited to your needs laurent Sent from my road phone On Jun 30, 2010, at 7:59 AM, unixo wrote: > Hi, > > I'm writing a sync client which pulls "Contac