What is the advantage of doing this:
NSArray *array = [[NSArray alloc] initWithObjects:@"Year", "@Capital", ..., nil];
self.hintArray = array;
[array release];
Instead of assigning directly to my class variable like this:
self.hintArray = [[NSArray alloc] initWithObjects:@"Year", "@Capital", ..., nil];
Why do we create a temporary ...
I have an Objective-C class that looks something like:
@interface myClass : NSObject
{
NSMutableDictionary *aDict;
}
Its setter method looks like:
- (void) setADict: (NSMutableDictionary *) newDict
{
[aDict release];
[newDict retain];
aDict = newDict;
}
I've created an instance of the object, put data into aDict, an...
I've got a couple questions about .net console applications.
I created the console app, and included a solution file during the create, but when I open the solution file, it only shows the project, not the solution. Why doesn't the solution load in the solution explorer?
Also, I don't seem to be able to build the project in 'Release' m...
Hi, I'm writing a Cocoa app in Objective C that's communicating with a webservice and I want it to connect to a sandbox in debug mode and to the real webservice in release mode. All I need is to change on line of code where an object that holds the configuration gets instantiated (with a different init-message and different parameters).
...
Does the Visual Studio 2008 Web Deployment Projects handle deployment of ASP.NET MVC applications? If not, what's the best practice for deploying an ASP.NET MVC application?
Also what's the best way to handle different versions of configuration files (such as web.config) that will contain different settings depending on what type of bui...
I have a C# Console app in VS C# Express 2008. The program needs to read a few files at runtime, which I would like to place in the same directory as the .EXE for convenience. But of course there are two .EXEs, one debug and one release, and I don't want to copies of everything. What's the best way to manage this?
...
I can't seem to locate this on the web anywhere.
What was the date of the first stable release of Tcl v8.5?
Thanks.
...
I am tracking down a strange bug. The bug manifests itself with the display of this message in the console log:
BlurApp(5018,0xa00d6500) malloc: *** error for object 0x103b000: pointer being freed was not allocated
This message pops in after execution has left my event loop. It seems to be happening when the autorelease pool is bein...
In my class object i've defined a (nonatomic, retain) property for UIImage.
I assigned this property with an image loaded via
[UIImage imageNamed:@"file.png"];
If at some point I want to reassign this property to another image, should I have to release the prior reference?
I am confused because by the retain property I know i should ...
Perl 5.11 is now released! Is there anything really exciting in this release, or is it mostly maintenance patches? (From what I've read so far, it appears to be a rollup of improvements we have already seen in prior releases.)
the CHANGES file
Jesse Vincent's announcement
chromatic's blog post
5.11 is the development release of what...
I am trying to floss daily, get my exercise, and make sure I maintain a balance between my retains and releases.
Here is what has me puzzled. I have a ivar:
NSMutabledata *_alignmentData
and a synthesized property associated with it:
// .h file
@property (nonatomic, retain) NSMutableData *alignmentData;
// .m file
@synthesize align...
All of our applications have Debug="False" in the web.config and Release DLL's.
We have a number of Applications that use ScriptManagers now for .net Ajax implementations. The ScriptManager has a ScriptMode that is set for Release and Debug modes. The default for this is Auto and when it is set to Auto it's value is set based on the Dep...
It's strange, if I build my program in debug mode, I have no errors, but if I build my program in released mode, I get an error saying that Msvcr90d.dll is not found.
Msvcr90d.dll is a debug library, I'm not sure why it's coming up when I load it for release =/
...
Hi Guys
this is a release-build process question which I would need to solve for our SW Team.
We are developing embedded system applications that are based on several common libraries. We also introduced overnight builds and automatic SW testings in oder to be able to track down errors as soon as possible. The applications and librarie...
I find myself writing a lot of reusable code because I couldn't find reusable code that other people wrote. Tiny stuff, like little winforms components, among other things.
I am looking for a website where I could release this sort of stuff to the public with licensing on it. I don't need something like Google Code/Sourceforge/Codeplex,...
Why in cpp a dll in debug mode is X10 bigger than release while in .Net they are almost the same size?
...
I need to have some lines of code "active" in debug mode only, and ignored in release mode.
Is there a way to do something like this:
#include <iostream>
using namespace std;
#ifdef _TEST_
#define _cerr cerr
#else
#define _cerr // cerr
#endif
int main() {
_cerr << "TEST message" << endl;
}
So that when _TEST_ is not defined, some...
Simple task, but for some reason no simple solution just yet.
We've all got web.config files - and I haven't worked anywhere yet that doesn't have the problem where someone yells across the room "Sh*t, I've just uploaded the wrong web.config file".
Is there a simple way of being able to auto generate a web.config file that will contain...
Hello,
I have been developing with objective C and the Cocoa framework for quite some time now. However it is still not absolutely clear to me, when am I supposed to set object references to nil. I know it is recommended to do so right before releasing an object that has a delegate and you should also do so in the viewDidUnload method f...
My project depends on a 3rd party library that only has snapshots in its maven repository (no releases, which seems strange, but that's how it is). Every time I do a full build (and clean my local .m2 repository) maven will obviously go and grab the latest build.
My repository proxies the one with the snapshots in it, is there anyway to...