release

Splash screen appears on Debug mode but not on Release (iOS4)

I have iPhone 3GS, iOS4, xcode 3.2.3. After loading the Default.png, I add a little splash screen the looks exactly like the application start view. This splash screen appears animating in Debug mode, but do not show at all in Release mode(I get a blank screen), this of course rules out any problems with the image, like size or name. I ...

revision vs. version

I am kicking off some process improvements at a new company. One of the areas to concentrate on first is CM. I was asked during a briefing of what I am doing what is the difference between revision and version. I gave my explanation and then followed up with an email of the following link: http://www.product-lifecycle-management.com/...

Correct handling of asynchronous NSObject

I have a situation similar to this: http://stackoverflow.com/questions/2698591/objective-c-how-to-use-memory-managment-properly-for-asynchronous-methods I have an object that asynchronously downloads & parses an xml doc. It then has a delegate method that transfers the data it retrieved to the caller. My 2 questions are: When do I rel...

Releasing while notifying

Hi there!, I have an object id currentObject; which I want to pass through notification. The problem is I don't know how to release it correctly and the memory management documentation is driving me crazy. I am doing it like this right now: [[NSNotificationCenter defaultCenter] postNotificationName:@"MessageReceived" object:nil us...

iPhone SDK: Memory issues in releasing a UIViewController with UITextField

Hi all, I've some memory issues with a view controller that contains a text field. Brief summary: Clicking on a button my application modally presents a UIViewController (that I will call "VC1"). From VC1 the user can optionally open (using pushViewController) a UITableViewController ("VC2") and turn back. From VC1 the user can optional...

Using Variable of AppDelegate as a Global Variable - question regarding release/retain

Hello, I have created a Variable called "myDBManager" in my AppDelegate: @interface myAppDelegate : NSObject <UIApplicationDelegate> { MyDBManager *myDBManager; } @property (nonatomic, retain) MyDBManager *myDBManager; @end which I use in most other classes as a global Variable holding all my critical application data. It gets o...

Android releasing and app into the market hmm

I am nearly done with my first android app and there's still a bit more work to do but I want to get feedback from users about what they like/hate/bugs to fix, etc. I plan on making the app free with ads. Now I have been testing my app on my phone (HTC Magic) and plan on doing some simple testing on the emulator using different configura...

What's the difference between libs under Debug/ and Release/ directory in C?

When I link to the one under Release/ ,got a fatal error: LINK : fatal error LNK1146: no argument specified with option '/machine:' Then I tried to link to the .lib under Debug/ and this time it works. But what can be different? ...

Release message to a UINavigationController object

Hello, I am relatively new to Cocoa programming, and some aspects of memory managing are still troubling me. In this case, I am creating a UINavigationController using the alloc message, and initialising it with a UIView controller. Then, I am presenting the view modaly by passing it to the presentModalViewController method. Below is ...

why the memory is still holding when I do removefromsuperview?

I'm currently working on a ipad project and found this. so here is my structure i subclassed uiviewcontroller as customizedVC,like this @protocol customizedVCDelegate -(void)viewclosed:(UIView *)view oldviewcontroller:(UIViewController *)oldvc newvcname:(UIViewController *)newvc; @end @interface customizedVC : UIViewController { ...

Can I make Visual Studio create the Debug DLL as XXXd.DLL instead of XXX.DLL ?

I have found a solution for this, but it only works if you use .DEF files (I don't). I wonder if this can be done without .DEF files. ...

Release Mode vs Debug = "false"

I'm trying to find a definite explanation of what effect compiling in release mode has on a .Net 3.5 web application versus debug="false". So far it looks like setting debug="false" has the same effect and compiling in release mode has been depreciated but I can't find any firm evidence this is the case. This question looked promising b...

can we start a animation, stop it and reassign new animation array to animationImages?

please read the code in my viewcontroller -(void)StartAnimation { if (self.myimgarray == nil) { self.myimgarray = [NSMutableArray arrayWithCapacity:0]; } UIImage *img; for (int i=0; i<=17; i++) { img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"a_expand_%d.png",i] ofType:...

Segregating Debug and Release Code in C#

I'm writing an application wherein I have some debug code that I do not wish to delete, but I wish it to be modified or removed when compiling for release/publish. For example, I would like something like this in a debug build: MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); ...to become this in a...

obj-c NSString and alloc / retain / release

This is probably a question that is more about object alloc/retain/release, but I'll use NSString as an example. I'm aware that I can do: NSString* myString = [[NSString alloc] initWithString:@"Test"]; to essentially allocate and initialize a string referenced by my variable myString which I should later call [myString release] upon....

Possible scenarios of using alloc/retain/release on iPhone?

Hi, I have been using ojective c for almost a week, and I am mainly a c++ coder. After I read Apple's memory management guide, I try to bring my memory usage style in c++ into objective c... I tried to conclude these scenarios, I think I won't make memory mistake if I follow these instructions. Please kindly let me know if I am wrong :...

A very basic question about alloc and release

Hi Forum I'm a little confused about objc and allocating/releasing objects. If I do this: NSString *myString; if([someString isEqualToString: @"test1"]){ myString = @"got 1"; }else{ myString = @"got 2"; } Do I have to release myString after that? And the same with self-defined objects: myOwnObject *someObject = [someArray...

difference between nil and released object

Hi guys, I'm new to Objective-C and and I can't understand this. I know that I can send a message to nil (it's so hyped about feature of Objective-C), but I can't send a message to released object, getting an exception in this case, what the difference between them? ...

Releasing a PHP CMS... how to?

I'm about to release a CMS written in PHP (using Zend Framework). It's very powerful and easy to manage once you understand it. I was wondering to release it some under commercial license (I want money) but I realized that there's a saturation of CMS's on market. So I think I'm going to release it under some open-source license. I kn...

iPhone app codeSigning only fails for "device + release"

I can compile and install (on the iphone) several of the apps I've written. I have 1 generic "*" certificate for developing any app. (It expires in 6 days) I have individual "com.site.appName" for distributing each app. But there's this 1 app, that just started giving: warning: Application failed codesign verification. The signat...