In my applicationDidFinishLaunching I have:
[[UIApplication sharedApplication] setStatusBarOrientation:
UIInterfaceOrientationLandscapeRight animated:NO];
Out of curiosity, what version of iPhone OS are you building for? If
you're using 2.1 and later, it should just work. If not, you'll ne
I've often found the Clang Static Analyzer to be of great use in these
matters though it is still in development and can produce false
positives (and miss a few things). Instruments also includes a Leaks
tool that can assist in tracking down leaks (be sure to expand the
right extended deta
You can create a more organized resource structure on your local
filesystem for development by creating groups in Xcode and changing
the path to them (seen here - http://www.quicksnapper.com/wisequark/image/untitled-0039)
but when the time arrives to build the application bundle, they'll
be
In short, applications that are ported to the platform with the
express intent of maintaining their look and feel from Windows do
little more than treat OS X users as second-class citizens. No one
likes paying money for that feeling so at the end of the day, I doubt
the port will see even
There is no way to obtain the serial number of a device using the SDK.
The unique identifier, as the name indicates, is a string guaranteed
to be unique for each device. If you need access to the serial number
for some other reason (i.e. tracking devices in an enterprise
environment) I'd ad
Are you compiling with the -fopenmp flag?
-rob.
On Jan 31, 2009, at 8:30 PM, jurin...@eecs.utk.edu wrote:
I am attempting to multi-process an cocoa application I developed last
year. I have a MacPro with dual-quads, using xcode 3.1.
Trying to use openMP to concurrently run a loop via the "#p
Easily reproduced doesn't always translate into guaranteed to occur.
In my experience, using a single queue in your application is a
sufficient safeguard as no system framework I've encountered causes an
issue. That isn't to say that the API is without quirks but they can
usually be adjus
If you check out the WWDC attendee site (https://developer.apple.com/wwdc/attendee/index.php
) you can pick a track-specific reference library. The sample code
will be available there.
-rob.
On Jan 17, 2009, at 12:22 PM, Brad Gibbs wrote:
I attended a couple of great sessions on Core Data at
Take a look at UIGraphicsGetImageFromCurrentImageContext() (or
something like that, don't have the docs handy).
-rob.
On Jan 15, 2009, at 11:18 AM, Memo Akten wrote:
wow i did not know that, brilliant thanks! is there a way to do it
programmatically? i could not find it in the docs...
On
The memory management guides go into great detail on this subject.
Autoreleased objects have the trigger of a release delayed until the
autorelease pool is "drained." By explicitly releasing an object, you
are surrendering ownership of that object and, really, is there a good
reason to kee
Are you ever releasing the view? Similarly, have you overridden
didReceiveMemoryWarning in your view controllers?
-rob.
On Jan 12, 2009, at 1:26 PM, Oscar Alejandro Alvarado Prieto wrote:
Hi there.
I'm using a table view controller inside a navigation controller
wich is a
view controller
There is a reason *why* disabled buttons have a different appearance.
The members of this list are curious as to why you would want to
override that. And yes, if you don't have a good reason they will
certainly point that out.
-rob.
On Jan 12, 2009, at 1:57 PM, Donnie Lee wrote:
Because
More often than not, optimizing a user's experience should be the
larger concern than worrying about an NSButton's memory footprint.
-rob.
On Jan 12, 2009, at 1:43 PM, Donnie Lee wrote:
So what you're saying is you want a button that doesn't do anything?
Exactly.
In that case, just don't
As Glenn indicated, this is largely a factor of the size of the
images. Layers are considerably lighter weight than Views (with the
associated functionality loss). Of course, doing what you want to do
- depending on the animation involved - might simply be having two
image views and anima
You have lost me...but I will keep it in mind for later. What I do
know is that if I step through the code, **that line** is never
returned to, so the admonition that once "Return" is invoked,
nothing further will be done is advice well taken.
You should review the memory management guide f
You can initialize the view with a frame that is positioned off screen
and then use implicit animation to bring it in. Alternatively, a
subtler approach would be to animate it's appearance in by animating
the change in alpha value from 0 to 1. For instance -
scanView.alpha = 0.0;
[UIView
is hard to find what mistake i am making with IB. Sure, one
could make mistakes in writing all the code but somehow seems more
reliable ;-)
-mohan
On Wed, Jan 7, 2009 at 5:46 AM, Robert Marini
wrote:
Martijn -
I don't necessarily know that I'd agree with that though it could be
Not necessarily, they don't have access to the system crash log but
it's certainly possible to roll your own crash reports. For instance
- http://www.restoroot.com/Blog/2008/10/18/crash-reporter-for-iphone-applications/
and http://www.restoroot.com/Blog/2008/10/20/crash-reporter-for-iphone-a
nterface Builder, as is
provides
more confusion than solutions, IMO.
Martijn
On Wed, Jan 7, 2009 at 06:44, Robert Marini
wrote:
UISearchBar is a standard cocoa touch control.
-rob.
On Jan 6, 2009, at 7:35 AM, Martijn van Exel wrote:
Hi all,
I'm looking to implement a user selecti
UISearchBar is a standard cocoa touch control.
-rob.
On Jan 6, 2009, at 7:35 AM, Martijn van Exel wrote:
Hi all,
I'm looking to implement a user selection from a large number of items
contained in a deep hierarchy (a taxonomy of species) for the iPhone.
The hierarchy is too deep for a drill-do
In general, it would perhaps be best to create a c string from the
NSString using the proper text encoding and then iterating through the
C string in reverse, appending each character to an NSMutableString.
Iterating through each character of an NSString is likely to be slow
and the usage
There is no "standard" ratings widget (and I'd advise you submit a
bugreport requesting one if you haven't done so already) nor is there
a good work-around for fixing the slider since some would argue that
it isn't actually broken (one common complaint in the past was that
accidentally touc
There are a few floating around but there are any number of licensing
issues that arise as a result. Google doesn't provide their tileset
for cheap and I've not heard of any success stories w/r/t obtaining
said license from anyone who isn't a huge-ish company. Your best bet
would be to co
There is generally any number of ways, as you indicate. In some cases
your solution to the problem might be a target/action-like system.
Generally KVO will be more flexible but is not without it's own unique
set of problems (I'd suggest looking at http://shiftedbits.org/2008/07/24/key-value-
Yes, you can.
This simply leads to voodoo programming where retains and releases
are sprinkled throughout your code as a substitute for
understanding. In addition to deferring absorbtion of the Basic
Rules, it's almost certainly going to lead to a problem at some
stage when you retain and
The system is not aware of responsibility at all. By the time memory
management happens, all concept of local variables has disappeared.
The system cannot know, and does not care, what variables are
"responsible" for an object. All it cares about is properly balanced
retains and releases.
Perhap
So... firstly, - tempNum = [[NSDecimalNumber alloc] init] at the end
of a method after assigning an autoreleased instance of
NSDecimalNumber to it - why? I'm trying to understand the logic in
this and can't. As near as I can tell you aren't doing any book-
keeping of this later on.
What I
1) desiredURL and link are, in essence, the same object. As far as
the system is aware though, only one of those (link) is responsible
for it. It is entirely possible that link is being sent -release in
another method executing on another thread and so you absolutely
should retain the var
Indeed, you have no way of guaranteeing that link still exists as you
are not explicitly claiming ownership to it. In the first case of
your if, you receive an autoreleased NSURL instance (a new object
created by using the contents of the link object). In the second, all
your code is doin
I've heard good things about pantomime though haven't used it myself
(and I understand it has a few gotchas related to international
characters).
It might also be worth looking into solutions accessible via the
scripting bridge as my experience has been that languages such as
Python offer
There is no public way to do this.
-rob.
On Dec 23, 2008, at 2:44 AM, Angelica Grace Tanchico wrote:
Hello,I have tried looking for a way (code) on how to "unsleep" the
iPhone but I could not find any.I am developing a VOIP app. So far
so good but I have a little problem. After my app is
Any stack variable (int, float, etc) won't be declared as a pointer.
Recall that a variable containing a * indicates that it is, in fact,
some address in memory that is being pointed to (hence a pointer). If
we recall, then, that memory consists of a "stack" and a "heap" - the
pointer sit
If you can target Leopard and above, @synchronized is probably a
better route to go though as scott said, the object to be synchronized
around would need to be checked by all methods using it (in your case
this would be the instance of the NSLock).
-rob.
On Dec 22, 2008, at 10:12 AM, Scott
This is probably better suited for the Xcode-users list
http://lists.apple.com/mailman/listinfo/xcode-users
but since it's here - this has most of what you're asking about
http://cocoasamurai.blogspot.com/2008/02/complete-xcode-keyboard-shortcut-list.html
-rob.
On Dec 22, 2008, at 2:27 AM, Boo
I've never seen it documented though perceived performance would
indicate this is indeed the case. I've rarely come across a case
where sort descriptors weren't "fast enough" (indeed, given how well
they work with bindings it is somewhat essential). In general, if
this route is too slow t
I don't know how many on this list will be able to offer a solution.
My method of accomplishing this sort of work in the past has been to
ensure that my applications are scriptable and then executing
automator workflows against them. If that's not a good route to take
for you (I would enc
Or if you want to store NSInvocation objects long-term, or if you need
low latency processing, or if you want to be able to safely take the
address of a global variable, or use the bytes pointer of a temporary
NSData object without jumping through hoops, or
GC can be nice, but there are a *to
This shouldve gone to the list -
Sent from my iPhone
Begin forwarded message:
From: Robert Marini
Date: December 21, 2008 4:04:40 PM EST
To: Alex Kac
Subject: Re: Stacks & Memory Management.
Well, it was a dirty hack - I overrode -retain to retain every
object twenty times and -rel
Overriding retain/release for the purpose of setting a breakpoint
shouldn't ever require touching retaincount. When I first started to
play with cocoa a few years ago I recall attempting to use it to debug
a retain cycle, it wasn't of any use and drove me mad(der) for a few
minutes.
Sent
Do not look at the retain counts. Down that path lies madness.
Frankly, -retainCount should be removed (or, better, modified to
just return rand()).
b.bum
Wiser words were never spoken (I actually presented a rather contrived
piece of code at a local iphone meetup to demonstrate why eve
There are a great many more bugs than what Mike described in the
previous thread relating to NSOperationQueue - it leaks Mach Ports
under GC, it occasionally will retain an operation object if you
cancel before starting it, it will sometimes dealloc an operation
object without updating fini
You may be able to do what you want with http://www.liquidx.net/eyetunes/
-rob.
On Oct 1, 2008, at 2:10 PM, Uli Kusterer wrote:
On 01.10.2008, at 19:51, Mr. Gecko wrote:
Hello I am needing to know how to play a playlist in iTunes using
AppleEvents. I am able to get the Playlist ID and the
42 matches
Mail list logo