Re: How can I be so wrong about graphics?

2011-06-07 Thread Manfred Schwind
Hmm... it looks like it does draw the line... way off in the ether somewhere... I think I drew in the global coord system not the local to the view Are you sure you are _not_ calling drawRect yourself, but let the system call it when needed? If a view needs to be redrawn, the system sets up

Re: OS + iOS best practice

2011-06-07 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/6/11 10:51 PM, Amy Gibbs wrote: After the announcements about iCloud, should I just wait a while and I'll be able to build this in 'for free' (there will be a cocoa way to do this)? While the iCloud announcement was obviously public, all the

Re: iOS: Manually setting orientation makes a mess out of my interface

2011-06-07 Thread brodhage
It might be the wrong way to set the orientation manually? Try to use shouldAutorotateToInterfaceOrientation and return NO for interfaceOrientation not being UIInterfaceOrientationLandscapeLeft or UIInterfaceOrientationLandscapeRight. This way you have less code and it does not depend on

Noob question in regards to NSXMLParser

2011-06-07 Thread Eric E. Dolecki
I am fetching some XML weather from Google: xml_api_reply version=1 weather module_id=0 tab_id=0 mobile_row=0 mobile_zipped=1 row=0 section=0 forecast_information city data=Framingham, MA/ postal_code data=01701/ latitude_e6 data=/ longitude_e6 data=/ forecast_date data=2011-06-07/

Re: Noob question in regards to NSXMLParser

2011-06-07 Thread Hank Heijink (Mailinglists)
Two ways that I've used: 1. Keep a boolean isInCurrentConditions that you set when you start the current_conditions element and reset when you end that element. Then every time you enter a condition element you check the boolean to see if you are where you need to be in the hierarchy. This

Re: Noob question in regards to NSXMLParser

2011-06-07 Thread Eric E. Dolecki
I went with the first solution and it works well enough for me. Anything beyond this simple XML and I think I'd likely use a 3rd-party solution. Thanks for the suggestion! Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki

seeking to understand ABPeoplePickerView behavior

2011-06-07 Thread ronald b. kopelman
I have been trying to implement setNameDoubleAction: setGroupDoubleAction: which I do in applicationDidFinishLaunching as follows: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { stuff [pickerView setNameDoubleAction:@selector(doNameSelection:)];

Re: Noob question in regards to NSXMLParser

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 7:03 AM, Eric E. Dolecki wrote: What I am really after is the current_conditions data. How can one specify WHERE in the XML to use the attributes from? A lot of the information is repeated in other nodes so I can't just check (if([elementName isEqualToString:@condition]){)

Re: Noob question in regards to NSXMLParser

2011-06-07 Thread Eric E. Dolecki
This is for iOS. I've used XPath in other languages and it's totally awesome. So I am using some flags and a counter to get things done... feels like a total hack, but it's working. Sorry, I'll specify in the future for sure... Google Voice: (508) 656-0622 Twitter: eric_dolecki

Re: CoreData problem - AttributeDescription seems invalid --- What am I doing wrong?

2011-06-07 Thread Motti Shneor
Thanks everyone. I knew it had to be something stupid I still feel that iterating over a dictionary means iterating over its CONTENTS, not its KEYS --- but that's just my weird brain. Finally I found it in the documentation as well. Following Evadne Wu's advice it now works flawlessly. On

Re: Noob question in regards to NSXMLParser

2011-06-07 Thread Chris Ridd
On 7 Jun 2011, at 19:11, Eric E. Dolecki wrote: This is for iOS. I've used XPath in other languages and it's totally awesome. So I am using some flags and a counter to get things done... feels like a total hack, but it's working. Sorry, I'll specify in the future for sure... You might

Re: Noob question in regards to NSXMLParser

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 11:41 AM, Chris Ridd wrote: You might want to check out the GDataXMLDocument class, as it is a drop-in (exact?) replacement for NSXMLDocument except it supports namespaces properly in XPath expressions. Ooooh, that’s nice to know. I’ve had some really frustrating times

Login item not hidden

2011-06-07 Thread Leonardo
Hi, I add my app to the login items list. I mark the hidden check-box. I re-login, my app gets properly launched but it clearly appears on the screen, not hidden at all. What do I miss? I compile with SDK 10.5, target 10.5. Regards -- Leonardo ___

Re: Login item not hidden

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 3:13 PM, Leonardo wrote: I add my app to the login items list. I mark the hidden check-box. I re-login, my app gets properly launched but it clearly appears on the screen, not hidden at all. What do I miss? Are you making any call at launch time that would activate the

Re: Login item not hidden

2011-06-07 Thread Leonardo
No I don't do that. In the applicationDidFinishLaunching method I call reply = [NSApp runModalForWindow:aboutWindow]; an I dismiss the about window with a timer 2 seconds later. But even if I comment this line of code, at login, I see the Finder active, so my app is not active, but the window

Re: Login item not hidden

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 3:46 PM, Leonardo wrote: I see in the login item list an Apple application called iTunesHelper. This is marked as hidden. And when I login I don't see it at all. I cannot activate nor quit it. So, how to make my app behaving exactly like that? If you want an app that has

Malformed URL string in openURL

2011-06-07 Thread James Merkel
I am sending a URL string to NSWorkspace's openURL method that has the bracket characters ( ) in it. The URL can't be opened by NSWorkspace. If I take out the ( ) characters NSWorkspace then opens the URL, so I guess NSWorkspace considers the string with ( ) a malformed URL. Note, the

iOS: antialiasing text

2011-06-07 Thread Graham Cox
I'm rendering text into a bitmap image context (in fact just a single letter, with a small drop-shadow). I am unable to get this text to be drawn anti-aliased, despite turning on all the shoulds and allows that pertain to this. Is anti-aliasing supported in a bitmap context on iOS? It seems to

Re: Malformed URL string in openURL

2011-06-07 Thread Jeffrey Walton
On Tue, Jun 7, 2011 at 7:42 PM, James Merkel jmerk...@mac.com wrote: I am sending a URL string to NSWorkspace's  openURL method that has the bracket characters ( ) in it. The URL can't be opened by  NSWorkspace. If I take out the ( ) characters NSWorkspace then opens the URL, so I guess

Re: Malformed URL string in openURL

2011-06-07 Thread Jeffrey Walton
On Tue, Jun 7, 2011 at 8:03 PM, Jeffrey Walton noloa...@gmail.com wrote: On Tue, Jun 7, 2011 at 7:42 PM, James Merkel jmerk...@mac.com wrote: I am sending a URL string to NSWorkspace's  openURL method that has the bracket characters ( ) in it. The URL can't be opened by  NSWorkspace. If I take

Re: Malformed URL string in openURL

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 4:42 PM, James Merkel wrote: I am sending a URL string to NSWorkspace's openURL method that has the bracket characters ( ) in it. The URL can't be opened by NSWorkspace. If I take out the ( ) characters NSWorkspace then opens the URL, so I guess NSWorkspace considers

Re: Malformed URL string in openURL

2011-06-07 Thread James Merkel
On Jun 7, 2011, at 5:06 PM, Jeffrey Walton wrote: On Tue, Jun 7, 2011 at 8:03 PM, Jeffrey Walton noloa...@gmail.com wrote: On Tue, Jun 7, 2011 at 7:42 PM, James Merkel jmerk...@mac.com wrote: I am sending a URL string to NSWorkspace's openURL method that has the bracket characters ( ) in

Re: Malformed URL string in openURL

2011-06-07 Thread James Merkel
On Jun 7, 2011, at 5:39 PM, Jens Alfke wrote: On Jun 7, 2011, at 4:42 PM, James Merkel wrote: I am sending a URL string to NSWorkspace's openURL method that has the bracket characters ( ) in it. The URL can't be opened by NSWorkspace. If I take out the ( ) characters NSWorkspace then

Re: Malformed URL string in openURL

2011-06-07 Thread Jens Alfke
On Jun 7, 2011, at 6:17 PM, James Merkel wrote: The following works ok: NSString * mapquestURLString; mapquestURLString = [NSString stringWithString:@http://mapq.st/?maptype=hybridq=39.7452,-104.98916;]; (Just FYI, the -stringWithString call is redundant. You can just assign the

Re: Malformed URL string in openURL

2011-06-07 Thread James Merkel
On Jun 7, 2011, at 6:20 PM, Jens Alfke wrote: On Jun 7, 2011, at 6:17 PM, James Merkel wrote: The following works ok: NSString * mapquestURLString; mapquestURLString = [NSString stringWithString:@http://mapq.st/?maptype=hybridq=39.7452,-104.98916 ]; (Just FYI, the -stringWithString

Re: Malformed URL string in openURL

2011-06-07 Thread Howard Siegel
On Tue, Jun 7, 2011 at 18:20, Jens Alfke j...@mooseyard.com wrote: On Jun 7, 2011, at 6:17 PM, James Merkel wrote: mapquestURLString = [NSString stringWithString:@ http://mapq.st/?maptype=hybridq=39.7452,-104.98916(Test point label)”]; It’s not the parens that are illegal, it’s the

Re: Login item not hidden

2011-06-07 Thread Jerry Krinock
On 2011 Jun 07, at 15:13, Leonardo wrote: I add my app to the login items list. I mark the hidden check-box. I re-login, my app gets properly launched but it clearly appears on the screen, not hidden at all. What do I miss? I compile with SDK 10.5, target 10.5. There was a bug I reported in

Re: Malformed URL string in openURL

2011-06-07 Thread Steve Christensen
On Jun 7, 2011, at 6:32 PM, James Merkel wrote: On Jun 7, 2011, at 6:20 PM, Jens Alfke wrote: On Jun 7, 2011, at 6:17 PM, James Merkel wrote: The following works ok: NSString * mapquestURLString; mapquestURLString = [NSString

Re: Malformed URL string in openURL

2011-06-07 Thread James Merkel
On Jun 7, 2011, at 9:52 PM, Steve Christensen wrote: stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding Yeah, I just found that method about an hour ago! Not related to Cocoa -- but It turns out after playing around with this with mapquest and google maps, adding a label can

Determining bounds needed for a Core Image effect

2011-06-07 Thread Graham Cox
I'm using Core Image filters to apply real-time effects to vector objects. I've run into the problem of determining just how much space I need to accommodate any given effect. Currently I just add a fixed percentage to the bounds I start with, but it's actually inadequate to do this for many