Re: iPhone/iPod Device Detection Necessary for App Approval?

2009-10-14 Thread Anthony Smith
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

iPhone/iPod Device Detection Necessary for App Approval?

2009-10-14 Thread Anthony Smith
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

Re: Returning to app after phone call

2009-10-13 Thread Anthony Smith
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

viewWillDisappear not being called

2009-10-13 Thread Anthony Smith
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

Returning to app after phone call

2009-10-13 Thread Anthony Smith
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

UIViewController Receive Shake Event?

2009-10-12 Thread Anthony Smith
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

Re: Reacting to UIBarButtonItem

2009-10-07 Thread Anthony Smith
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. -

Re: Reacting to UIBarButtonItem

2009-10-07 Thread Anthony Smith
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'

Reacting to UIBarButtonItem

2009-10-07 Thread Anthony Smith
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

Re: View shifted up on iPhone simulator

2009-10-03 Thread Anthony Smith
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

Re: View shifted up on iPhone simulator

2009-10-02 Thread Anthony Smith
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&

Re: View shifted up on iPhone simulator

2009-10-02 Thread Anthony Smith
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

Re: View shifted up on iPhone simulator

2009-10-02 Thread Anthony Smith
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

Re: View shifted up on iPhone simulator

2009-10-02 Thread Anthony Smith
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

Re: View shifted up on iPhone simulator

2009-10-02 Thread Anthony Smith
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

View shifted up on iPhone simulator

2009-10-02 Thread Anthony Smith
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

Re: Releasing NSSearchPathForDirectoriesInDomain causes crash

2009-09-30 Thread Anthony Smith
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

Releasing NSSearchPathForDirectoriesInDomain causes crash

2009-09-30 Thread Anthony Smith
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);

Re: Integrating with another app

2009-07-15 Thread Anthony Smith
, 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&#x

Re: testing your app on a virtual machine?

2009-07-15 Thread Anthony Smith
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.

Integrating with another app

2009-07-15 Thread Anthony Smith
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 _

Re: Cocoa Frontend to SDL App

2009-07-14 Thread Anthony Smith
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

Re: Cocoa Frontend to SDL App

2009-07-11 Thread Anthony Smith
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

Re: Cocoa Frontend to SDL App

2009-07-10 Thread Anthony Smith
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

Re: Cocoa Frontend to SDL App

2009-07-10 Thread Anthony Smith
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

Cocoa Frontend to SDL App

2009-07-10 Thread Anthony Smith
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 ___

Re: Toolbar Example

2009-07-09 Thread Anthony Smith
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

Toolbar Example

2009-07-09 Thread Anthony Smith
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

Re: Application Support Folder

2009-06-25 Thread Anthony Smith
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

Application Support Directory Questions

2009-06-25 Thread Anthony Smith
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

Application Support Folder

2009-06-24 Thread Anthony Smith
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

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
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

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
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

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
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

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
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

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
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

Window Max Zoom Size

2009-02-12 Thread Anthony Smith
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