Re: Protocol for Table View Trouble

2008-08-06 Thread Ken Thomases
On Aug 6, 2008, at 12:43 AM, Eric Lee wrote: I've been having trouble implementing some protocols for table view. I just copied and pasted from my other code into this .m file, changed the variables so that it matched the variables in the .h file, but it has 6 errors, and I can't find out

Re: Protocol for Table View Trouble

2008-08-06 Thread Quincey Morris
On Aug 5, 2008, at 22:43, Eric Lee wrote: #import drawerTableView.h @implementation drawerTableView - (IBAction)makeDrawerVisible:(id)sender { [drawer setLeadingOffset:0]; [drawer setTrailingOffset:0]; [drawer openOnEdge:1]; [itunessongs

Re: Using performSelector: on super

2008-08-06 Thread James Bucanek
Ken Thomases mailto:[EMAIL PROTECTED] wrote (Tuesday, August 5, 2008 9:34 PM -0500): On Aug 5, 2008, at 10:20 PM, James Bucanek wrote: First rule of optimization: Don't! Get the code working and profile it. Then if, and only if, it's a significant performance bottleneck THEN consider

Rotate NSString... I give up :(

2008-08-06 Thread Vitaly Ovchinnikov
Hello, I need to draw NSString rotated to 90 degrees. Now I have the code: NSRect rcWhereToDraw = NSMakeRect(); // - rect is already rotated here [str drawInRect:rcWhereToDraw withAttributes:attributes]; // string will be drawn non-rotated as far as I know, I need something like this:

Re: Properties and memory management

2008-08-06 Thread Marcel Weiher
On Aug 5, 2008, at 15:28 , Uli Kusterer wrote: On 05.08.2008, at 22:24, Marcel Weiher wrote: On Aug 5, 2008, at 2:57 , Uli Kusterer wrote: Lucky then, that I adopted GNUstep-style ASSIGN() and DESTROY() macros for these purposes, and since most of my code still needs to be

Re: backporting nibs question / Rhapsody license anyone?

2008-08-06 Thread Ralf Edmund Stranzenbach
Hi, because i'm currently facing a comparable situation - i'd like to migrate old NeXT style mails and mailboxes and also some old NeXTstep based applications for my personal use - i'm really interested in any possible solutions. I still have access to some of the early Rhapsody CDs, but

Re: Rotate NSString... I give up :(

2008-08-06 Thread Jean-Daniel Dupas
Shouldn't be this instead (check the translations' signs) ? [tr translateXBy:dx yBy:dy]; // center or rect will be the center of rotation [tr rotateByDegrees:90]; // rotate it [tr translateXBy:-dx yBy:-dy]; // move it back Le 6 août 08 à 08:46, Vitaly Ovchinnikov a écrit : Hello, I need

Re: Using performSelector: on super

2008-08-06 Thread Wade Tregaskis
The try/catch setup is well optimized and introduces very little overhead. So in the nominal case, where there is no exception, there's almost no overhead at all. Even if an exception was thrown, NSException is fairly lightweight. This is not particularly accurate. There, I'll beg to

Re: handling idle events

2008-08-06 Thread Negm-Awad Amin
Hi, maybe you can use a thread and set the thread priority low. I never tried it, just an idea. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSThread_Class/Reference/Reference.html#/ /apple_ref/occ/clm/NSThread/setThreadPriority: I think, that this a better

Re: backporting nibs question / Rhapsody license anyone?

2008-08-06 Thread Jean-Daniel Dupas
Le 6 août 08 à 09:50, Bill Bumgarner a écrit : On Aug 6, 2008, at 12:19 AM, Ralf Edmund Stranzenbach wrote: because i'm currently facing a comparable situation - i'd like to migrate old NeXT style mails and mailboxes and also some old NeXTstep based applications for my personal use - i'm

autorelease CGImageRef?

2008-08-06 Thread Peter N Lewis
Given a CGImageRef, how can I autorelease it? Perhaps this is obvious, or perhaps its impossible, but googling hasn't found me the answer yet except for a tantalizing comment in the docs for NSBitmapImageRep: - (CGImageRef)CGImage (added in 10.5) Returns an autoreleased CGImage object (an

Re: Rotate NSString... I give up :(

2008-08-06 Thread Vitaly Ovchinnikov
Will test this too, but I don't think it will work. In my case I moved rectangle from it's real position to zero, then rotate around zero and then moved back. In your case I will move it far from zero and then rotate... But I will give it a try. On Wed, Aug 6, 2008 at 11:20 AM, Jean-Daniel Dupas

Re: Using performSelector: on super

2008-08-06 Thread Negm-Awad Amin
Am Di,05.08.2008 um 22:20 schrieb Andy Lee: On Aug 5, 2008, at 3:39 PM, I. Savant wrote: I'm going to make a bold statement: You should only ever call [super someMethod] from within an overridden someMethod implementation. I believe this is true in all cases (because I can't at the moment

Re: CGGStackRestore: gstack underflow

2008-08-06 Thread Ryan Brown
A shot in the dark... Are you manually activating the run loop using NSDefaultRunLoopMode? I recently encountered the same problem (using Core Animation as well), and eventually tracked it down to the way I was waiting for messages from a CFMessagePort to arrive. Specifying a custom run

Re: autorelease CGImageRef?

2008-08-06 Thread Mike Abdullah
Since CGImage is derived from CFType you can just do: [(id)aCGImageRef autorelease] The reason being that CFType knows how to handle a -release message, and autorelease is just a way of deferring that message. On 6 Aug 2008, at 09:29, Peter N Lewis wrote: Given a CGImageRef, how can I

Re: How to enable/disable buttons immediately after focus transfer

2008-08-06 Thread Negm-Awad Amin
Did you try a subclass of NSWindow and overriding -setFirstResponder:? Amin Am Di,05.08.2008 um 15:36 schrieb an0: I know how to do this for NSValidatedUserInterfaceItem by implementing `- (BOOL)validateUserInterfaceItem:(id NSValidatedUserInterfaceItem )anItem'; however, NSSegmentedControl

typedef, bindings, and Objective-C

2008-08-06 Thread patrick machielse
While maintaining some older Obj-C++ code I ran into the following issue: typedef'ed pointer/object types break bindings in Objective-C. To illustrate, the model code is similar to this: Model.mm #import Cocoa/Cocoa.h typedef NSString MyString; @interface Model : NSObject {

Re: KBML Generator/Parser

2008-08-06 Thread Apparao Mulpuri
Sorry, mentioned incorrect url for KBML. Working url for KBML is: http://koala.ilog.fr/kbml/. Any pointers on this would greatly help. Thanks, - Apparao. On Wed, Aug 6, 2008 at 11:16 AM, Apparao Mulpuri [EMAIL PROTECTED] wrote: Hi Guys, In my Cocoa application, i am planning to use KBML

Re: typedef, bindings, and Objective-C

2008-08-06 Thread Ken Thomases
On Aug 6, 2008, at 5:47 AM, patrick machielse wrote: typedef NSString MyString; [...] In IB the value binding of an NSTextField is connected to the Model's 'text' property. This works as expected when the code is compiled as Objective-C++. Changing to Objective-C still compiles

Re: Message Framework and Garbage Collection

2008-08-06 Thread Ruotger Skupin
Hi, just to let you know: I'm trying to use the Message Framework with Garbage Collection enabled and it crashes deep down in the framework. I filed a bug: 6128812 You can [...] use Pantomime, Pantomime is not GC-ready. I haven't tried to switch on CG and see what happens though.

Re: autorelease CGImageRef?

2008-08-06 Thread Jean-Daniel Dupas
Be carefull when you mix CFType memory management, and obj-c memory management. It works well when you do not use GC, but may become problematic if you do not take special care with GC code. If I'm not wrong, it should be something like this: [NSMakeCollectable(aCGImageRef) autorelease];

Re: How to debug a corrupted stack

2008-08-06 Thread Gerriet M. Denkmann
On 6 Aug 2008, at 11:14, Ken Thomases wrote: On Aug 5, 2008, at 9:51 PM, Gerriet M. Denkmann wrote: I have a document based app which works perfectly with -O0 or -O1 but crashes with -O2 or higher. When the crash occurs the debugger comes up and says: Previous frame identical to this

Dumb Q

2008-08-06 Thread William Squires
What's the proper way to make a C/ObjC program (Foundation tool) be used with the pipe operator? I want to make a simple filter that takes the output of ls -la and reformats it to appear more like the MS-DOS directory listing. So, I would do something like ls -la | mydosfilter and get a

remove elements during the iteration on NSMutableDictionary

2008-08-06 Thread Wayne Shao
Hi Please see the question in the comments of the following code. NSMutableDictionary* aDictionary = (initialized with some objects) for (id theKey in aDictionary) { id anObject = [[aDictionary objectForKey:theKey] retain]; [aDictionary removeObjectForKey:theKey]; // Question: will this

Re: Dumb Q

2008-08-06 Thread Thomas Davie
On 6 Aug 2008, at 15:57, William Squires wrote: What's the proper way to make a C/ObjC program (Foundation tool) be used with the pipe operator? I want to make a simple filter that takes the output of ls -la and reformats it to appear more like the MS-DOS directory listing. So, I would

Re: remove elements during the iteration on NSMutableDictionary

2008-08-06 Thread Negm-Awad Amin
Am Mi,06.08.2008 um 16:27 schrieb Wayne Shao: Hi Please see the question in the comments of the following code. NSMutableDictionary* aDictionary = (initialized with some objects) for (id theKey in aDictionary) { id anObject = [[aDictionary objectForKey:theKey] retain]; [aDictionary

Re: autorelease CGImageRef?

2008-08-06 Thread Shawn Erickson
On Wed, Aug 6, 2008 at 6:08 AM, Negm-Awad Amin [EMAIL PROTECTED] wrote: Am Mi,06.08.2008 um 14:26 schrieb Jean-Daniel Dupas: Be carefull when you mix CFType memory management, and obj-c memory management. It works well when you do not use GC, but may become problematic if you do not take

Re: How to debug a corrupted stack

2008-08-06 Thread Shawn Erickson
On Tue, Aug 5, 2008 at 7:51 PM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: I have a document based app which works perfectly with -O0 or -O1 but crashes with -O2 or higher. When the crash occurs the debugger comes up and says: Previous frame identical to this frame (corrupt stack?) When I

Re: remove elements during the iteration on NSMutableDictionary

2008-08-06 Thread Negm-Awad Amin
Am Mi,06.08.2008 um 16:48 schrieb Wayne Shao: On Wed, Aug 6, 2008 at 7:41 AM, Negm-Awad Amin negm- [EMAIL PROTECTED] wrote: Am Mi,06.08.2008 um 16:27 schrieb Wayne Shao: Hi Please see the question in the comments of the following code. NSMutableDictionary* aDictionary = (initialized

Re: remove elements during the iteration on NSMutableDictionary

2008-08-06 Thread Negm-Awad Amin
Am Mi,06.08.2008 um 16:48 schrieb Wayne Shao: On Wed, Aug 6, 2008 at 7:41 AM, Negm-Awad Amin negm- [EMAIL PROTECTED] wrote: Am Mi,06.08.2008 um 16:27 schrieb Wayne Shao: Hi Please see the question in the comments of the following code. NSMutableDictionary* aDictionary = (initialized

Re: Protocol for Table View Trouble

2008-08-06 Thread Corbin Dunn
In addition to what the others said: On Aug 5, 2008, at 10:43 PM, Eric Lee wrote: I've been having trouble implementing some protocols for table view. I just copied and pasted from my other code into this .m file, changed the variables so that it matched the variables in the .h file, but

Re: Protocol for Table View Trouble

2008-08-06 Thread Shawn Erickson
On Tue, Aug 5, 2008 at 10:43 PM, Eric Lee [EMAIL PROTECTED] wrote: I've been having trouble implementing some protocols for table view. I just copied and pasted from my other code into this .m file, changed the variables so that it matched the variables in the .h file, but it has 6 errors, and

Re: KBML Generator/Parser

2008-08-06 Thread Jason Stephenson
Apparao Mulpuri wrote: Sorry, mentioned incorrect url for KBML. Working url for KBML is: http://koala.ilog.fr/kbml/. I was just about to point that out to you. I found the above also by googling kbml. Any pointers on this would greatly help. My question is, what are you trying to do

Re: backporting nibs question / Rhapsody license anyone?

2008-08-06 Thread Bill Bumgarner
On Aug 6, 2008, at 1:02 AM, Jean-Daniel Dupas wrote: Especially if you considere that all Mac OS X versions prior to 10.4.x are PPC only. Only back to Mac OS X 10.0. Prior versions ran on an assortment of different platforms, including i386, m68k, PA RISC, and Sparc (in the shipping

Re: CGGStackRestore: gstack underflow

2008-08-06 Thread Gordon Apple
I don't know anything about NSDefaultRunLoopMode and have simply been trying to replace my layered list of draw lists with layers in what may or may not be a scrolling view. I'm not doing anything with animation yet. To say this has been problematic would be an understatement. Also, in spite of

[NEWB] Filling a rect with an Image

2008-08-06 Thread Brad Gibbs
I'm trying to create a view with a background image, but getting error after error... - (void)drawRect:(NSRect)rect { NSRect bounds = [self bounds]; NSImage *background = [[NSImage alloc] init]; [background setImage:@ScrollBackground]; [[NSColor

Re: [NEWB] Filling a rect with an Image

2008-08-06 Thread Kyle Sluder
On Wed, Aug 6, 2008 at 11:50 AM, Brad Gibbs [EMAIL PROTECTED] wrote: I've added a .png named ScrollBackground to my Resources folder. The code compiles but I get a warning: NSImage may not respond to '-setImage'. That would be because, indeed, NSImage does not respond to -setImage.

Re: [NEWB] Filling a rect with an Image

2008-08-06 Thread Brad Gibbs
Thanks. I was looking at NSImageView (which does have a setImage: method). On Aug 6, 2008, at 8:58 AM, Kyle Sluder wrote: On Wed, Aug 6, 2008 at 11:50 AM, Brad Gibbs [EMAIL PROTECTED] wrote: I've added a .png named ScrollBackground to my Resources folder. The code compiles but I get a

Re: Using performSelector: on super

2008-08-06 Thread Jonathan deWerd
The solution I would use would be to implement a category on super's class, or rename the method (probably the best option from a design standpoint). For instance, suppose we have (stretching the objc syntax a bit) @implementation FooClass - (void)sayHi { NSLog(@Hi); } @end

Re: remove elements during the iteration on NSMutableDictionary

2008-08-06 Thread Negm-Awad Amin
Am Mi,06.08.2008 um 18:30 schrieb Roland King: for (id theKey in aDictionary) { id anObject = [[aDictionary objectForKey:theKey] retain]; [aDictionary removeObjectForKey:theKey]; // Question: will this removal break or corrupt the loop of enumerating the elements? [anObject someMessage];

Re: remove elements during the iteration on NSMutableDictionary

2008-08-06 Thread Negm-Awad Amin
Am Mi,06.08.2008 um 18:49 schrieb Andrew Merenbach: On Aug 6, 2008, at 9:30 AM, Roland King wrote: for (id theKey in aDictionary) { id anObject = [[aDictionary objectForKey:theKey] retain]; [aDictionary removeObjectForKey:theKey]; // Question: will this removal break or corrupt the loop of

Re: How to debug a corrupted stack

2008-08-06 Thread Sean McBride
On 8/6/08 9:51 AM, Gerriet M. Denkmann said: So it is kind of difficult to see where and why the stack gets corrupted. Have you tried 'stack canaries'? http://lists.apple.com/archives/xcode-users/2007/Dec/msg00055.html On 8/6/08 7:59 PM, Gerriet M. Denkmann said: If someone wants to check

How do you create a new PDF file and write text to it?

2008-08-06 Thread Paul Archibald
Comrades - It looks like PDFKit is aimed at simply reading and navigating within an existing PDF file, but what I need to do is create a new PDF and write some simple text to it. I know that the Preview app does that for a lot of apps, but I would like to bypass that, too. I simply want

Re: How do you create a new PDF file and write text to it? LOOKS LIKE ITS SOLVED

2008-08-06 Thread Paul Archibald
Dude! That does look simple. I figured it would be. Thanks, Paul On Aug 6, 2008, at 11:42 AM, Charles Steinman wrote: --- On Wed, 8/6/08, Paul Archibald [EMAIL PROTECTED] wrote: It looks like PDFKit is aimed at simply reading and navigating within an existing PDF file, but what I need to

Re: How do you create a new PDF file and write text to it?

2008-08-06 Thread John Calhoun
On Aug 6, 2008, at 11:37 AM, Paul Archibald wrote: It looks like PDFKit is aimed at simply reading and navigating within an existing PDF file, but what I need to do is create a new PDF and write some simple text to it. Sorry, I had to jump in and refute that — PDF Kit does allow PDF

Re: Rotate NSString... I give up :( [SOLVED]

2008-08-06 Thread Vitaly Ovchinnikov
Yes, he right. I've just tested it and it works fine. I though that -translateXBy:yBy: will move my object, but it moved pivot point... This is hard, especially with revesed OY axis ;) Thanks to you and Jean-Daniel. On Wed, Aug 6, 2008 at 10:19 PM, Steve Christensen [EMAIL PROTECTED] wrote: No,

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-06 Thread James Trankelson
Hi Nicolas, David, I'm having the exact same problem. Loading collections of small images (jpeg in my case). The only slight difference for me is that if I run my application under XCode (Debug build), I don't get any errors. All of the images load fine. However, when I run the (Debug) binary,

Re: Rotate NSString... I give up :( [SOLVED]

2008-08-06 Thread Kyle Sluder
On Wed, Aug 6, 2008 at 4:37 PM, Vitaly Ovchinnikov [EMAIL PROTECTED] wrote: Yes, he right. I've just tested it and it works fine. I though that -translateXBy:yBy: will move my object, but it moved pivot point... This is hard, especially with revesed OY axis ;) Well, it all happens in one

Re: Rotate NSString... I give up :( [SOLVED]

2008-08-06 Thread Vitaly Ovchinnikov
Yes, you right, but I expected what I need to move text to the zero point, rotate it and move it back. But NSAffineTransform works quite the contrary and requires to move the zero point to the text and then back. That was a big surprise for me. On Thu, Aug 7, 2008 at 12:55 AM, Kyle Sluder [EMAIL

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-06 Thread David Duncan
Couldn't tell either of you why your having issues without seeing code, and probably not even then, but this is probably worth a bug report. On Aug 6, 2008, at 1:52 PM, James Trankelson wrote: I'm having the exact same problem. Loading collections of small images (jpeg in my case). On

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-06 Thread Gary L. Wade
Off the top of my head, with a number of files being opened so high and relatively close to the value you get from getrlimit with a parameter of RLIMIT_NOFILE, I'd suggest checking to see if that's the problem. Hi Nicolas, David, I'm having the exact same problem. Loading collections of small

Re: remove elements during the iteration on NSMutableDictionary

2008-08-06 Thread Andrew Merenbach
On Aug 6, 2008, at 10:36 AM, mm w wrote: usually, in a better design view you do the opposite, a safe copy of the keys that you need in a new dict, then you release the old man, you have a really strange programming approach, aDictionary - aNewDictionary with only my wanted keys, with your

Re: post events to NSApplication

2008-08-06 Thread Michael Ash
On Tue, Aug 5, 2008 at 10:18 PM, Jim Crafton [EMAIL PROTECTED] wrote: Is it possible to create a custom event for an apps internal usage and have it posted to the NSApp, and then processed later on? If so, how would one do this? I'm not sure how to a) create the event b) get notified when the

Re: remove elements during the iteration on NSMutableDictionary

2008-08-06 Thread Andrew Merenbach
On Aug 6, 2008, at 3:01 PM, mm w wrote: i will return the question why fast enumerator prevents against this? maybe in-memory Pile?, you should have answered to the question alone Without knowing the workings of fast enumeration, I am at a loss as to why it would prevent it -- unless it

Re: handling idle events

2008-08-06 Thread Michael Ash
On Tue, Aug 5, 2008 at 10:16 PM, Jim Crafton [EMAIL PROTECTED] wrote: Is there a way to handle idle time in an NSApplication? In Win32 or Carbon, since you manually write the actual while loop that processes the events, this is pretty easy to do. Is there anything like this in Cocoa? I've got

[Newbie] Extracting a specific character number from a string

2008-08-06 Thread Phil Faber
I'm trying to learn more about string manipulation and want to be able to extract a single character from a string. I think I need to use subStringWithRange (exacting from and to the same character location) but I'm not sure and I'm also unsure how to code it. Basically I'm after the

Re: [Newbie] Extracting a specific character number from a string

2008-08-06 Thread Ricky Sharp
On Aug 6, 2008, at 5:23 PM, Phil Faber wrote: I'm trying to learn more about string manipulation and want to be able to extract a single character from a string. I think I need to use subStringWithRange (exacting from and to the same character location) but I'm not sure and I'm also

Re: [Newbie] Extracting a specific character number from a string

2008-08-06 Thread Kyle Sluder
On Wed, Aug 6, 2008 at 6:23 PM, Phil Faber [EMAIL PROTECTED] wrote: NSLog(@Character %i of %@ is %@,i,pass1,[pass1 substringWithRange:1,2]); You need to pass an NSRange struct to -[NSString substringWithRange:]. You can make one using the NSMakeRange() function. If you didn't know that

Re: Dumb Q

2008-08-06 Thread Marco Masser
I want to make a simple filter that takes the output of ls -la and reformats it to appear more like the MS-DOS directory listing. So, I would do something like ls -la | mydosfilter and get a directory listing with the filename first, the # bytes second, then the timestamp (leaving out

Re: Rotate NSString... I give up :( [SOLVED]

2008-08-06 Thread Nathan Vander Wilt
On Aug 6, 2008, at 2:08 PM, Vitaly Ovchinnikov wrote: Yes, you right, but I expected what I need to move text to the zero point, rotate it and move it back. But NSAffineTransform works quite the contrary and requires to move the zero point to the text and then back. That was a big surprise for

Command Line Argument - Choosing a Style

2008-08-06 Thread hac
Hi, I'm developing an application to support third-party extensions that filter text. Each filter consists mainly of a property list and an executable. The idea is that the text of the current document goes into the executable along with settings specified in the property list (as arguments); text

NSOperationQueue Memory Leak

2008-08-06 Thread Mike Simmons
I have an audio application that processes numerous audio streams into ten-second clips, compresses the clips, and saves them to disk. Naturally, I wanted to move from single-threaded processing to multithreaded processing for the clip compression/writing. That was easily done using the

NSSpellChecker (foundation) broken for custom NSSpellServer servers

2008-08-06 Thread Adam Strzelecki
Hello, I'm one of the supporters of custom NSSpellServer effort called SpellCheck that does provide spell support for Eastern Europe languages missing in Leopard built-in spell checker (We got Polish interface but no Polish spell checker). SpellCheck uses Cocoa's NSSpellServer interface,

how to create the special modal dialog

2008-08-06 Thread pan xuan
Hi, In some of Preferences's pane, when clicking a + sign, a modal dialog comes up not separately but as a child shadowed dialog sticking out from the bottom of the tool bar. What is that kind of dialog called? and how to program it? Thanks for the help. Pan

Core Data question

2008-08-06 Thread Sandro Noel
Greetings! :) I'm experimenting with core data, bindings work just fine, I love them and it's great and all. :) but I want to import a massive file into the database. so I'm trying to create it programatically. So far I've been able to insert records in simple entities, using some code

Re: Command Line Argument - Choosing a Style

2008-08-06 Thread Jonathan deWerd
I would make plugins of a different type: standard cocoa bundles (there are a handful of tutorials on google). This way, people could install and uninstall using the finder (a little known but helpful feature of the info box), you could use standard cocoa APIs, you wouldn't have to deal

Token Field tags selected when raising panel window ...

2008-08-06 Thread vince
I have a token field in a drop panel that I am using to store keyword search tags. When I raise the panel all previously saved tags are selected. Clicking within the field alleviates the problem. All is working fine. It's mainly an aesthetic issue. is there something that I can do to prevent this?

Properties, read only and bindings

2008-08-06 Thread Steven W Riggins
Hi! I'm winding my way through KVO, readonly properties and bindings. I have an object which has a bool state. I have a method that toggles that state. I have a button that calls the method that toggles the state. The button has a title, which I've bound to a readonly property, which

Re: Properties, read only and bindings

2008-08-06 Thread Steven W Riggins
Aha! I was missing the willChangeForKey: call. - (IBAction) toggleIsCloning: (id) sender { [self willChangeValueForKey:@cloningLabel]; self.isCloning = !self.isCloning; [self didChangeValueForKey:@cloningLabel]; } Now it works fine, thanks! On Aug 6, 2008, at 10:07 PM,

Re: Properties, read only and bindings

2008-08-06 Thread Roland King
If your isCloning is a property itself, can you use the dependent key registration logic instead? [ self setKeys:[ NSArray arrayWithObjects:@isCloning, nil ] triggerChangeNotificationsForDependentKey:@cloningLable ]; I've never tried this, but it's documented here and I recall reading about