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
I am fetching some XML weather from Google:
...
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:@
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 work
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
http://blog.ericd.n
I have been trying to implement setNameDoubleAction: & setGroupDoubleAction:
which I do in applicationDidFinishLaunching as follows:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
"stuff"
[pickerView setNameDoubleAction:@selector(doNameSelection:)];
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
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 XBoxLi
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
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
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
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
___
Co
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 a
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 o
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 h
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 (
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 r
On Tue, Jun 7, 2011 at 7: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 conside
On Tue, Jun 7, 2011 at 8:03 PM, Jeffrey Walton wrote:
> On Tue, Jun 7, 2011 at 7: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 NSWo
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 conside
On Jun 7, 2011, at 5:06 PM, Jeffrey Walton wrote:
On Tue, Jun 7, 2011 at 8:03 PM, Jeffrey Walton
wrote:
On Tue, Jun 7, 2011 at 7: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
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
On Jun 7, 2011, at 6:17 PM, James Merkel wrote:
> The following works ok:
>
> NSString * mapquestURLString;
>
> mapquestURLString = [NSString
> stringWithString:@"http://mapq.st/?maptype=hybrid&q=39.7452,-104.98916";];
(Just FYI, the -stringWithString call is redundant. You can just assign th
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=hybrid&q=39.7452,-104.98916
"];
(Just FYI, the -stringWithString c
On Tue, Jun 7, 2011 at 18:20, Jens Alfke wrote:
>
> On Jun 7, 2011, at 6:17 PM, James Merkel wrote:
>
> > mapquestURLString = [NSString stringWithString:@"
> http://mapq.st/?maptype=hybrid&q=39.7452,-104.98916(Test point label)”];
>
> It’s not the parens that are illegal, it’s the spaces. Change
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
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
>>> stringWithString:@"http://mapq.st
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 ch
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 eff
28 matches
Mail list logo