special characters are destroyed when copying a string character by character

2011-04-05 Thread Horst Jäger
quot;%@ %@ %d", sausageString, sausageStringCopy, sausageStringIsEqualToSausageStringCopy); NSLog(@"%@ %@ %d", cheeseString , cheeseStringCopy , cheeseStringIsEqualToCheeseStringCopy ); } @end :::: Demo.m -- Horst Jä

secure cookie?

2010-03-15 Thread Horst Jäger
Hi, it says in the NSHTTPCookieStorage class reference: "NSHTTPCookieStorage implements a singleton object (shared instance) that manages the shared cookie storage. These cookies are shared among all applications and are kept in sync cross-process." I need the opposite thing. Is it possible t

NSDictionary, allKeys and the NSAutoreleasePool

2009-09-03 Thread Horst Jäger
Hi, yesterday I stumbled upon something strange concerning the autorelease pool. Please consinder the following lines of code: NSLog(@"devel"); NSAutoreleasePool *autoreleasePool = [[NSAutoreleasePool alloc] init]; NSDictionary *di = [[NSDict

After changing to MacOS 10.6 XCode no longer compiles

2009-09-02 Thread Horst Jäger
Hi, after changing to MacOS 10.6 my XCode no longer compiles. No error message and XCode doesn't freeze. It just says "CompileXIB ..." and that's it. Any idea what I could do? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Are NSNumber objects some kind of numeric literals

2009-03-23 Thread Horst Jäger
Hi, I noticed that NSNumber objects with the same value are all have the same address. But since they are created at runtime they must all be held in a big container - or am I mistaken? Thanks in advance Horst ___ Cocoa-dev mailing list (Coco

Re: Accessing private members of another object of the same class

2009-01-26 Thread Horst Jäger
First of all: thank you. You solved my problem. There's no real way to enforce privateness, either in Objective-C or C++. Why not in C++? Yes, these do the trick. But another->mineAlone will. -(int)yoursTooButWithAnother: (PrivateClass *)another { return another->m

Accessing private members of another object of the same class

2009-01-23 Thread Horst Jäger
Hi, suppose I have a class with a private member as listed at the end of this email. Then I can access it by calling its name without an accessor function (which would de facto make it public). But how do I access a private member of another object of the same class? Or does Objec

***Junkmail*** How do I programaticly create a va_list

2009-01-13 Thread Horst Jäger
Hi, I have a problem concerning the va_list. I don't know how to programaticly create one. I need to do this because I want to use the initWithFormat method of NSString. But I neither know how many args there will be nor are the args Strings - they are selectors the associated methods o

Arithmetics for large integers

2008-11-07 Thread Horst Jäger
Hi, I'm looking for a possibility to use arithmetics for arbitrarily large integers in objective c. Is there a special class or an framework that does the job? Thanks in advance Horst ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: newbie: send message to class not instance

2008-10-17 Thread Horst Jäger
Java borrowed from Objective-C on this and many other features. Java was actually derived from Obj-C. It is a "class method". OK. I like Objective-C better anyway. As to your other question, do this: [[myInstance class] myClassMethod]; Yes, thank you, that worked.

newbie: send message to class not instance

2008-10-16 Thread Horst Jäger
Hi, let's say I have a class "MyClass" @interface MyClass : NSObject{ - (void) myInstanceMethod; + (void) myClassMethod; } with an instance "myInstance" MyClass *myInstance = [[MyClass alloc] init]; . I could then call myInstanceMethod like [myInstance myInstanceMethod]; . I could call