Does anybody know why releasing the NSArray obtained from
NSSearchPathForDirectoriesInDomain causes my iPhone app to crash?
Here's my code:
+ (NSString *)dataFilePath:(NSString *)filename {
NSArray *paths = NSSearchPathForDirectoriesInDomains
(NSDocumentDirectory, NSUserDomainMask, YES);
On 01/10/2009, at 12:07 PM, Anthony Smith wrote:
Does anybody know why releasing the NSArray obtained from
NSSearchPathForDirectoriesInDomain causes my iPhone app to crash?
Here's my code:
+ (NSString *)dataFilePath:(NSString *)filename {
NSArray *paths = NSSearchPathForDirectorie
When I run my app in the iPhone simulator the view seems to be shifted
up on the screen. If that doesn't make sense I've uploaded some
images. Take a look and see if you've run into this before.
http://projects.sticksnleaves.com/iphonedev/ib.png
http://projects.sticksnleaves.com/iphonedev/si
ize or position
calculations here. That's where your problem will be.
Hank
On Oct 2, 2009, at 3:48 PM, Anthony Smith wrote:
I'm doing it programmatically. I'll see if I can figure that out
when I get a chance. Here's the relevant code in my app delegate:
- (UIView *)de
Sorry, I just reread your previous message. I layout the view in IB. I
load the view programmatically. I'm also using the 3.1 simulator.
On Oct 2, 2009, at 3:52 PM, Anthony Smith wrote:
I don't do any size or position calculations. I just set the view. I
don't do anything fan
didn't fully
understand just what the controllers did until after a very long
time of tinkering, but they're a godsend... or, an apple-send in
this case. They'll help making stuff like that line up, though only
after you understand them.
or 3) Use both the above options (this is
Not sure if this matters but when I run the view from IB the view
looks fine. However, when I run my application from Xcode it shifts
everything up. Just thought I'd put that out there.
On Oct 2, 2009, at 4:08 PM, Anthony Smith wrote:
Hm, I opted to set the view's programmatica
superview (the window) so that's why the apparent "shift".
Luke
On Oct 2, 2009, at 2:11 PM, Anthony Smith wrote:
Not sure if this matters but when I run the view from IB the view
looks fine. However, when I run my application from Xcode it shifts
everything up. Just thought I&
2, 2009, at 4:08 PM, Anthony Smith wrote:
Hm, I opted to set the view's programmatically rather than through
a controller so I could control what view is initially displayed
depending on the device (iPhone, iPod, etc.). I'm assuming I will
be able to achieve something like this even
I have a settings pane similar to Weather's settings pane. I have a
Done button on the right hand side which needs to trigger a flip
animation to get back to the main view. I'm having trouble getting the
UIBarButtonItem to trigger. I've tried setting the target and action
properties of UIBa
at
colons are part of selector names
Luke
On Oct 7, 2009, at 5:25 PM, Anthony Smith wrote:
I have a settings pane similar to Weather's settings pane. I have a
Done button on the right hand side which needs to trigger a flip
animation to get back to the main view. I'
Yes, user interaction enabled is set in IB for the nav bar.
On Oct 7, 2009, at 9:04 PM, Luke the Hiesterman wrote:
Make sure that your navBar's userInteractionEnabled property is set
to YES.
Luke
On Oct 7, 2009, at 5:58 PM, Anthony Smith wrote:
Hm, both seem to be fine.
-
Is it possible to have the UIViewController receive shake events in
the 3.x API? I saw that UIViewController subclasses UIResponder so I
thought I'd ask. I wrote some code but wasn't able to make it work.
Thought there might be some quirk. Currently I'm implementing a
solution by subclassin
Is it possible, if my app initiates a phone call, that after the call
the app will be relaunched? I've read the Application Programming
Guide so I understand interruptions and URLs. However, I was a little
confused on this aspect. Thanks any input.
smime.p7s
Description: S/MIME cryptographi
When switching my views I'm noticing that my view controllers
viewWillDisappear method is not being called. When switching the view
I call this explicitly so I'm kind of confused. Here's my view
switching code:
- (void)switchView:(UIViewController *)newViewController {
[newViewContr
Any ideas?
On Oct 13, 2009, at 1:11 PM, Anthony Smith wrote:
Is it possible, if my app initiates a phone call, that after the
call the app will be relaunched? I've read the Application
Programming Guide so I understand interruptions and URLs. However, I
was a little confused on
I read on a forum somewhere that it's necessary to detect the device
your app is running on and enable/disable features accordingly (e.g.
disable phone feature on iPod) for app approval. If an app is meant
for the iPhone only, is it necessary to detect the device and notify
the user?
smime
14, 2009, at 7:29 AM, Anthony Smith wrote:
I read on a forum somewhere that it's necessary to detect the
device your app is running on and enable/disable features
accordingly (e.g. disable phone feature on iPod) for app approval.
If an app is meant for the iPhone only, is it necessary t
I'm beginning to delve into Core Data and I've been looking at the
generated code for the Xcode Core Data project. I'm finding their
implementation of -applicationSupportFolder interesting. They grab the
NSApplicationSupportDirectory using
NSSearchPathForDirectoriesInDomains, which makes se
I'm beginning to delve into Core Data and I've been looking at the
generated code for the Xcode Core Data project. I'm finding their
implementation of -applicationSupportFolder interesting. They grab the
NSApplicationSupportDirectory using
NSSearchPathForDirectoriesInDomains, which makes se
plemented
it using NSTemporaryDirectory for the reason you noted which is what
made me ask the question in the first place.
On Jun 25, 2009, at 12:37 AM, Kyle Sluder wrote:
On Tue, Jun 23, 2009 at 9:02 PM, Anthony Smith> wrote:
If count is not greater than 0 then it returns an
NSTemporaryDirectory.
Wh
Can anybody recommend a toolbar example using Interface Builder? All
the ones I've seen manage toolbars through code. I'm just trying to
get my toolbar items to enable. I'm sure it's dead simple but I'm
still trying to wrap my head around bindings and key/value coding.
Thanks.
Anthony
sm
Thanks. I messed around with selector and didn't think I was heading
down the right path. The direction helps. I think I'll be able to
handle it from here.
On Jul 10, 2009, at 1:28 AM, Graham Cox wrote:
On 10/07/2009, at 3:20 PM, Anthony Smith wrote:
Can anybody recommend
I'm wanting to integrate an already made SDL app executed through the
command line into a Cocoa app within a custom view. Does anybody have
any insight on where to start something like this?
smime.p7s
Description: S/MIME cryptographic signature
___
ew. Do you still think these apps are a good starting point?
On Jul 10, 2009, at 10:08 AM, vinai wrote:
Doesn't ffmpegX and handbrake already do this ? I think both are
GPL'ed and wrap around ffmpeg.
cheers
vinai
--- On Fri, 7/10/09, Anthony Smith wrote:
I'm wanting to
ng through this. I appreciate the help.
On Jul 10, 2009, at 1:12 PM, Sherm Pendley wrote:
On Fri, Jul 10, 2009 at 9:58 AM, Anthony Smith> wrote:
I'm wanting to integrate an already made SDL app executed through the
command line into a Cocoa app within a custom view. Does anybody
ha
Yes, an OS X Intel compiled executable.
Sent from my iPhone
On Jul 11, 2009, at 11:51 AM, Alexander Spohr wrote:
Am 10.07.2009 um 21:35 schrieb Anthony Smith:
What I would like to do is be able to somehow make the binary of
the SDL app use the Cocoa view as the output device and output
Thanks for the information. It looks like I'll have to rewrite the
video code to do what I need. Thanks a ton!
On Jul 12, 2009, at 2:25 PM, Alexander Spohr wrote:
Am 11.07.2009 um 22:09 schrieb Anthony Smith:
On Jul 11, 2009, at 11:51 AM, Alexander Spohr
wrote:
Am 10.07.2009 um
What's the best way to include an external app's source into and Xcode
project? The app I'm using is cross platform, open source, programmed
in C and uses a makefile to build. Any suggestions?
Anthony
smime.p7s
Description: S/MIME cryptographic signature
_
The current version of VMware Fusion has at least experimental support
for OS X Server.
Sent from my iPhone
On Jul 15, 2009, at 12:18 PM, Todd Heberlein
wrote:
Is there anyway one can install an OSX system on a virtual machine
for testing purposes?
Check the EULA for Mac OS X Server.
, Graham Cox wrote:
On 15/07/2009, at 5:41 PM, Anthony Smith wrote:
What's the best way to include an external app's source into and
Xcode project? The app I'm using is cross platform, open source,
programmed in C and uses a makefile to build. Any suggestions?
There
What is the best way to set the max zoom size for NSWindow? I was able
to implement a solution by overriding zoom but that feels rather
invasive so I'm assuming there's probably a better way.
Thanks
Anthony Smith
___
Cocoa-dev mailing l
I'm surprised there isn't a maxZoomSize or something. This doesn't
look like it deals with zoom just resizing in general. I'm new to Mac
development so I could just be missing something. Thanks for the input!
Anthony Smith
On Feb 12, 2009, at 11:39 PM, John C. Randolph
That looks like it makes sense. I'm assuming -zoom: is only called
when being zoomed in and not zoomed out. Is that correct or do I need
to detect which way it's zooming?
On Feb 13, 2009, at 2:15 PM, Ken Thomases wrote:
On Feb 13, 2009, at 1:06 PM, Anthony Smith wrote:
I'm
Sorry, I was backwards:
"I'm assuming -zoom: is only called when being zoomed out and not
zoomed in."
On Feb 13, 2009, at 2:26 PM, Anthony Smith wrote:
That looks like it makes sense. I'm assuming -zoom: is only called
when being zoomed in and not zoomed out. Is
06 PM, Anthony Smith wrote:
I'm surprised there isn't a maxZoomSize or something. This doesn't
look like it deals with zoom just resizing in general. I'm new to
Mac development so I could just be missing something. Thanks for
the input!
You want the -windowWillUseStandardFra
tate (a new size and
location the user may have set by moving or resizing the window)."
This statement seems to imply that it's smart enough to know when it
should execute -performZoom: based on the windows state.
So I think this answers my question.
Anthony Smith
On Feb 13, 200
37 matches
Mail list logo