As per:
http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html
You take ownership of an object if you create it using a method whose
name begins with “alloc” or “new” or contains “copy” (for example,
alloc, newObject, or mutableCopy), or if you
On Feb 2, 2009, at 8:42 AM, Jacob Rhoden wrote:
I am wondering what the best way to read a text file, line by line,
when the file size is much larger than available memory.
I know there are helper functions like
stringWithContentsOfFile:encoding:error:, but this implies having to
load
On Feb 2, 2009, at 9:29 PM, Peter Duniho wrote:
On Feb 2, 2009, at 6:02 PM, Seth Willits wrote:
Before opening the file, either determine, guess, or be told what
the encoding is. With that encoding, convert your delimiter string
into raw bytes, then do byte-for-byte comparison on the file
On Jan 21, 2009, at 6:59 AM, Tharindu Madushanka wrote:
I have float variables that stores my currency values, I want to
display
these values in a string with commas at each 3 digits, can I do it
with
Objective C. I am new to the language. Please help me to solve this.
For example, float ft
On Jan 21, 2009, at 9:23 AM, James Cicenia wrote:
Here is some code I wrote for the appdelegate to initialize some
dictionaries and arrays:
My main question has to do with memory and releasing it. In my app
I will need listOfMonthNames for my popups
and will also need
On Jan 21, 2009, at 9:07 AM, Kenneth Bruno II wrote:
NSDateFormatter *aFormatter = [NSDateFormatter new];
NSArray *listOfMonthNames = [[aFormatter standaloneMonthSymbols]
retain];
One small error here, I should have added this line after these two in
order to properly
On Jan 21, 2009, at 12:04 PM, mmalc Crawford wrote:
On Jan 21, 2009, at 7:07 AM, Kenneth Bruno II wrote:
When I no longer need it I'll just call release on the object, this
would most likely be done in the dealloc method of the class in
which I initialized my object.
As a general
On Jan 12, 2009, at 9:50 AM, julius wrote:
So let me then ask: under the 64 bit architecture, will the standard
c types like int, char etc still be available and not give me
problems under garbage collection given I define them as strong?
Currently I'm defining most my variables as type
On Jan 12, 2009, at 5:51 PM, Schultz Keith J. wrote:
Hi Julius,
If I understand your problem correctly you are:
1) processing a very large amount of intergers
2) using highly optimized code that is:
a) you are manipulating the data directly via pointers
On Jan 11, 2009, at 9:41 AM, Adam R. Maxwell wrote:
On Jan 11, 2009, at 1:50 AM, Ken Thomases wrote:
On Jan 11, 2009, at 1:28 AM, ewan.dela...@math.unicaen.fr wrote:
If you must work character-by-character,
use character constants (e.g. '0' or '9')
In that (unlikely) situation, how
On Jan 11, 2009, at 4:44 PM, julius wrote:
About This Mac says that I have 2GB of internal memory.
Is this 2GB of 64-bit words or 2GB of 8-bit bytes?
I appreciate that GB is Giga Byte but ..
Similarly with respect to the L2 Cache, I have 12 MB per processor,
is that 12 MB by 8 bits or 64
On Jan 11, 2009, at 5:04 PM, Kenneth Bruno II wrote:
On Jan 11, 2009, at 4:44 PM, julius wrote:
About This Mac says that I have 2GB of internal memory.
Is this 2GB of 64-bit words or 2GB of 8-bit bytes?
I appreciate that GB is Giga Byte but ..
Similarly with respect to the L2 Cache, I
On Jan 11, 2009, at 5:26 PM, Benjamin Dobson wrote:
On 11 Jan 2009, at 22:04:09, Kenneth Bruno II wrote:
In actuality a gibibyte (GiB) is 2^20 bytes but it's not used in
all the places it should be used.
It's rarely used at all, for several reasons. One is that it makes
little sense
13 matches
Mail list logo