Re: readonly property which is a mutable array

2010-11-19 Thread Remco Poelstra
Op 19-11-2010 3:51, Ken Thomases schreef: I of course want the items to be read only for the outside world, but the object itself should be able to modify it. Now the compiler complains about the properties not matching. How should I solve this? Make a custom getter that returns an immutable

[iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Tharindu Madushanka
Hi, I would like to make UIWebView content empty while other page is loading. I tried loading [webview loadRequest:nil]; And also [webview loadHtmlString:@html/html baseUrl:nil]; Just before my [webview loadRequest:request]; method call. Still I am having previous html page shown a very little

Re: readonly property which is a mutable array

2010-11-19 Thread jonat...@mugginsoft.com
On 19 Nov 2010, at 02:51, Ken Thomases wrote: You don't need to implement the getter. The Cocoa docs are very clear that callers must respect the declared type of properties (i.e. return type of getters). That is, if the getter is declared to return an immutable NSArray, then

Re: readonly property which is a mutable array

2010-11-19 Thread Andreas Grosam
On Nov 19, 2010, at 10:29 AM, jonat...@mugginsoft.com wrote: If I receive an NSArray instance from a method I can for example identify the index of a particular object within the array, say at idx, safe in the knowledge that my object is at the given index. If however the object I

Codesign failure

2010-11-19 Thread Thorsten Lemke
Hello, I try to sign my app for the Mac App Store. But I get as reply from: /usr/bin/codesign -f -s 3rd Party Mac Developer Application: Thorsten Lemke /volumes/Master/GC7/build/Release/GraphicConverter.app /volumes/Master/GC7/build/Release/GraphicConverter.app: Unknown format in import. Does

Custom NSCell and target/action

2010-11-19 Thread Vincent Habchi
Hi there, I'm beginning to figure out something but I'd like to have some (even terse) comments. I have created a custom subclass of NSCell that duplicates the behavior of a NSColorWell: It draws a small colored rectangle inside of its frame, and responds to a click by opening the shared

Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Jonny Taylor
I am encountering what I believe to be a spurious compiler warning. I wonder whether this is a clue that I am doing something differently to how I should do it. The problem comes if I define a protocol containing a property and then define that property in a base class that does NOT conform to

Re: Custom NSCell and target/action

2010-11-19 Thread Graham Cox
On 20/11/2010, at 1:17 AM, Vincent Habchi wrote: Hi there, I'm beginning to figure out something but I'd like to have some (even terse) comments. I have created a custom subclass of NSCell that duplicates the behavior of a NSColorWell: It draws a small colored rectangle inside of its

Re: Why UIBarButtonItemStyleBordered?

2010-11-19 Thread Matt Neuburg
On Thu, 18 Nov 2010 19:03:15 -0800, Laurent Daudelin laur...@nemesys-soft.com said: Why this style if it doesn't make any difference with a bar button based on a custom view? I want to put an activity indicator on a bar button but it seems I can't. Well, I can but when I switch the right bar

Re: Custom NSCell and target/action

2010-11-19 Thread Vincent Habchi
Le 19 nov. 2010 à 15:39, Graham Cox a écrit : 1. Playing nice with the color panel requires a little care, because it's shared by not only any color wells in your app, but by any responders that implement -changeColor: You're right, I'll try to be cautious. 2. A table column only has one

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Matt Neuburg
On Fri, 19 Nov 2010 14:49:11 +0530, Tharindu Madushanka tharindu...@gmail.com said: Hi, I would like to make UIWebView content empty while other page is loading. I tried loading [webview loadRequest:nil]; And also [webview loadHtmlString:@html/html baseUrl:nil]; Just before my [webview

Re: Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Siegfried
On 19/11/2010, at 12:38, Jonny Taylor wrote: … Can anybody comment on whether I am doing something strange here Well I see something strange in here Sample code to demonstrate this in a fresh Cocoa project (main.m) with Xcode 3.2.1/gcc 4.2 is as follows: //== @protocol

Re: readonly property which is a mutable array

2010-11-19 Thread Keary Suska
On Nov 18, 2010, at 7:51 PM, Ken Thomases wrote: On Nov 18, 2010, at 9:33 AM, Keary Suska wrote: On Nov 18, 2010, at 5:35 AM, Remco Poelstra wrote: Hi, I've a object like to following: @interface Proto { NSMutableArray *items; } @property (nonatomic,readonly) NSMutableArray

Re: readonly property which is a mutable array

2010-11-19 Thread David Duncan
On Nov 19, 2010, at 10:00 AM, Keary Suska wrote: So, I think we should write code to guarantee immutability to the caller, regardless of type of course, which is the API contract you spell out. I see the easiest way as always returning a copy in the getter. But I don't remember how

Re: Codesign failure

2010-11-19 Thread Chris Ridd
On 19 Nov 2010, at 14:04, Thorsten Lemke wrote: Hello, I try to sign my app for the Mac App Store. But I get as reply from: /usr/bin/codesign -f -s 3rd Party Mac Developer Application: Thorsten Lemke /volumes/Master/GC7/build/Release/GraphicConverter.app

Re: Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Quincey Morris
On Nov 19, 2010, at 06:38, Jonny Taylor wrote: @protocol MyProtocol NSObject @property int genericProperty; -(void)subclassSpecificImplementationOfGenericFunction; @end @interface MyBaseClass : NSObject @property int genericProperty; @end @interface MySubclass :

NSNotificationCenter not always working?

2010-11-19 Thread Laurent Daudelin
Greetings. Is there a way to debug why the same postNotificationName:object:userInfo: would not work the second time it's called? I have a process downloading stuff from the internet that is repeated. There is a download controller that create page downloaders and then adds itself as observer

Re: NSNotificationCenter not always working?

2010-11-19 Thread Matt Neuburg
Date: Fri, 19 Nov 2010 11:58:35 -0800 From: Laurent Daudelin laur...@nemesys-soft.com Subject: NSNotificationCenter not always working? Is there a way to debug why the same postNotificationName:object:userInfo: would not work the second time it's called? In a word - no. This is one of

Re: NSNotificationCenter not always working?

2010-11-19 Thread Laurent Daudelin
On Nov 19, 2010, at 12:16, Matt Neuburg wrote: Date: Fri, 19 Nov 2010 11:58:35 -0800 From: Laurent Daudelin laur...@nemesys-soft.com Subject: NSNotificationCenter not always working? Is there a way to debug why the same postNotificationName:object:userInfo: would not work the second

Little suggestion for many many images app, best approach.

2010-11-19 Thread Gustavo Pizano
Hello everyone. Im starting a new iPad project, and Im having a dilemma here. WE have develop few apps using cocos2d great library BTW. but for this app Im required to draw 2 concentric circles filled with the area between them, this circle can enlarge or decrease while the user tap-drags

Re: NSNotificationCenter not always working?

2010-11-19 Thread Wayne Packard
On Nov 19, 2010, at 12:35 PM, Laurent Daudelin laur...@nemesys-soft.com wrote: On Nov 19, 2010, at 12:16, Matt Neuburg wrote: Date: Fri, 19 Nov 2010 11:58:35 -0800 From: Laurent Daudelin laur...@nemesys-soft.com Subject: NSNotificationCenter not always working? Is there a way to debug

Re: unit test exit's abnormally with code 5

2010-11-19 Thread Corbin Dunn
Um, how about : To enable Objective-C garbage collection for the test rig, run it in an environment without the OBJC_DISABLE_GC environment variable. And/or make sure your test is compiled fat (especially x86_64) corbin On Nov 18, 2010, at 6:50 PM, Shane wrote: Shameless bump. Anyone have

Re: Custom NSCell and target/action

2010-11-19 Thread Corbin Dunn
On Nov 19, 2010, at 7:09 AM, Vincent Habchi wrote: Le 19 nov. 2010 à 15:39, Graham Cox a écrit : 1. Playing nice with the color panel requires a little care, because it's shared by not only any color wells in your app, but by any responders that implement -changeColor: You're right,

Re: Subclasses, protocols and properties - compiler warning

2010-11-19 Thread Jeremy Pereira
On 19 Nov 2010, at 14:38, Jonny Taylor wrote: I am encountering what I believe to be a spurious compiler warning. I wonder whether this is a clue that I am doing something differently to how I should do it. The problem comes if I define a protocol containing a property and then define

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Bruce Turner
On Nov 19, 2010, at 3:02 PM, cocoa-dev-requ...@lists.apple.com wrote: On Fri, 19 Nov 2010 14:49:11 +0530, Tharindu Madushanka tharindu...@gmail.com said: Hi, I would like to make UIWebView content empty while other page is loading. I tried loading [webview loadRequest:nil]; And also

Re: unit test exit's abnormally with code 5

2010-11-19 Thread Shane
Any idea where OBJC_DISABLE_GC is? I searched in the targets info and found nothing there. I tried to change GCC_ENABLE_OBJC_GC to supported or required, but that didn't change anything. On Fri, Nov 19, 2010 at 4:14 PM, Corbin Dunn corb...@apple.com wrote: Um, how about : To enable Objective-C

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Tharindu Madushanka
Hi, [webView stringByEvaluatingJavaScriptFromString:@document.open();document.close()]; Solution Works as Bruce said :) Thanks a lot for all. Tharindu. On Sat, Nov 20, 2010 at 6:51 AM, Bruce Turner bmtur...@optonline.netwrote: On Nov 19, 2010, at 3:02 PM,

Re: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Jack Carbaugh
Could you not also load a local resource/file from bundle that is empty or as a placeholder ? On Nov 19, 2010, at 9:52 PM, Tharindu Madushanka wrote: Hi, [webView stringByEvaluatingJavaScriptFromString:@document.open();document.close()]; Solution Works as Bruce said :) Thanks a lot for

Re: unit test exit's abnormally with code 5

2010-11-19 Thread Chris Hanson
I suspect what’s going on is that your unit tests are built non-GC, but the framework you’re linking against is GC-only. You’ll need to enable GC for your unit tests too, if you want to test a GC-only framework; Objective-C garbage collection is on a per-process not per-binary basis. --

Re: Codesign failure

2010-11-19 Thread Rick C.
Also try looking on the Developer forums this was a big issue at first. I think the problem might be with your certificates you might need to redo them... On Nov 19, 2010, at 10:04 PM, Thorsten Lemke wrote: Hello, I try to sign my app for the Mac App Store. But I get as reply from: