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.

Core Data: The file is not in the right format - sometimes!

2008-10-17 Thread Robert Fischer
Hi, this bug drives me crazy for a long time now. I hope someone has another hint what I could try out to fix it. My application writes and opens Core Data files in XML format. Sometimes I can't find any way to open an existing file. After spinning wheel for a minute (!), the app states:

Re: executables for OSX 10.4 vs 10.5

2008-10-17 Thread Thomas Engelmeier
Am 17.10.2008 um 01:24 schrieb Stefan Werner: The only drawback is you get partially buggy, backward compatible behavior on Leopard when you link against the 10.4 SDK. Can you elaborate? I was under the naive assumption that as long as I don't use any 10.5-only APIs the 10.4 SDK and the

Re: How can I find app bundle with its identifier. App is not running.

2008-10-17 Thread Stephen J. Butler
On Fri, Oct 17, 2008 at 3:38 AM, Alexander Shmelev [EMAIL PROTECTED] wrote: I have to find application bundle with its identifies, but [NSBundle bundleWithIdentifier: ] searches only among running bundles. Is there any way to found bundle of not running application using its identifier? Not

Re: How can I find app bundle with its identifier. App is not running.

2008-10-17 Thread Mike Abdullah
Look at NSWorkspace, it has a number of methods for locating applications by bundle identifier. On 17 Oct 2008, at 09:38, Alexander Shmelev wrote: Hello, I have to find application bundle with its identifies, but [NSBundle bundleWithIdentifier: ] searches only among running bundles. Is

Re: Converting from HTML

2008-10-17 Thread Mike Abdullah
On 17 Oct 2008, at 03:17, Drarok Ithaqua wrote: Hi all, i'm trying to find a way to convert an HTML-originated URL into one I can use in cocoa. Example input: link type=application/rss+xml rel=alternate href=/search/uniqueamp;stuffamp;here / I know the URL that this data is fetched from,

Re: NSTokenField: Tokenizing on Right Arrow key

2008-10-17 Thread Dirk Musfeldt
Thanks, did that. :) rdar://problem/6299256 Am 16.10.2008 um 20:13 schrieb Aki Inoue: Since the key events are currently handled directly by the text view short-circuiting the normal key binding management (and, thus, - control:textView:doCommandBySelector: delegation), there is no easy

Minimizing Sheets

2008-10-17 Thread Gerriet M. Denkmann
I have an app which overrides -[NSWindow miniaturize:] in a category (to avoid crowding the dock). Works perfectly, but... If this window being minimized has a sheet attached (attachedSheet is non-nil) this will be lost on deminiaturizing. But the modal loop is still running, waiting for

Re: How can I find app bundle with its identifier. App is not running.

2008-10-17 Thread Ken Thomases
On Oct 17, 2008, at 3:55 AM, Stephen J. Butler wrote: On Fri, Oct 17, 2008 at 3:38 AM, Alexander Shmelev [EMAIL PROTECTED] wrote: I have to find application bundle with its identifies, but [NSBundle bundleWithIdentifier: ] searches only among running bundles. Is there any way to found

[MVC Design] Model Controller Rationale?

2008-10-17 Thread Oleg Krupnov
Is there any benefit in introducing a model controller, as another layer of indirection between the model and the view controller? Or should all business logic live right in the model? In what cases having a separate model controller can be justified? (Except for the model selection, which with

Re: Minimizing Sheets

2008-10-17 Thread Jason Coco
On Oct 17, 2008, at 06:03 , Gerriet M. Denkmann wrote: I have an app which overrides -[NSWindow miniaturize:] in a category (to avoid crowding the dock). Works perfectly, but... If this window being minimized has a sheet attached (attachedSheet is non-nil) this will be lost on

Re: Hand-building an Application Menu

2008-10-17 Thread Michael Ash
On Thu, Oct 16, 2008 at 6:45 PM, Russ [EMAIL PROTECTED] wrote: My menus are generated programmatically, not with a NIB (non-negotiable). I know you say non-negotiable, but I'm going to discuss it anyway, because there are some facts you may not be aware of. First fact: Cocoa does not support

Re: Minimizing Sheets

2008-10-17 Thread Gerriet M. Denkmann
On 17 Oct 2008, at 15:57, Jason Coco wrote: On Oct 17, 2008, at 06:03 , Gerriet M. Denkmann wrote: I have an app which overrides -[NSWindow miniaturize:] in a category (to avoid crowding the dock). Works perfectly, but... If this window being minimized has a sheet attached

Notification on Login Items change?

2008-10-17 Thread Karl Moskowski
In my Leopard-only app, I'm successfully using the LSSharedFileList APIs to add remove my app from the Login Items list, and to check at launch if it's in the list (so I can correctly default the setting in the app's prefs window). Is there a way to get notified when the entry is manually

Window widgets

2008-10-17 Thread Andre Masse
Hi all, I want to use the same widgets as the OS uses for its windows (red, yellow and green dots) for a status bar in my application, like IB does to indicate sync status with XCode. This is to reflect the connection status (red == not connected, green connected etc.) in mine. Is there

Re: Window widgets

2008-10-17 Thread Andy Lee
Does this help? standardWindowButton:forStyleMask: --Andy On Oct 17, 2008, at 12:46 PM, Andre Masse wrote: Hi all, I want to use the same widgets as the OS uses for its windows (red, yellow and green dots) for a status bar in my application, like IB does to indicate sync status with

Re: Minimizing Sheets

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 6:03 AM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: I have an app which overrides -[NSWindow miniaturize:] in a category (to avoid crowding the dock). I would be very surprised if you ever got this working. The windowing system is more complicated than NSWindow would

Re: Window widgets

2008-10-17 Thread Andre Masse
Oh yeah! Looks like its exactly what I need! Thanks a lot, Andre Masse On Oct 17, 2008, at 13:07, Andy Lee wrote: Does this help? standardWindowButton:forStyleMask: --Andy On Oct 17, 2008, at 12:46 PM, Andre Masse wrote: Hi all, I want to use the same widgets as the OS uses for its

Re: Objective 2.0 properties

2008-10-17 Thread Ignacio Enriquez
Thanks for your responses. Chuck: First : I used assign in order to be taught about it, actually I have never explicitly used. but As far as I know assign is the default so implicitly I have used it. with out problems. Second: Let me see If I understood. they should be copy since all the classes

Re: Objective 2.0 properties

2008-10-17 Thread Jim Correia
On Oct 17, 2008, at 1:25 PM, Ignacio Enriquez wrote: Second: Let me see If I understood. they should be copy since all the classes all conform to NSCopying. this means that all (and I mean ALL ) properties should be copy?? (since all objects inherits from NSObject and this class conform to

Re: Window widgets

2008-10-17 Thread Steve Christensen
One thing to point out is that there is no guarantee that those window widgets will continue to be red, yellow and green dots in a future OS release. Or that someone won't patch - standardWindowButton:forStyleMask: as part of a haxie for skinning the UI, in which case you could end up with

Re: Window widgets

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 1:41 PM, Steve Christensen [EMAIL PROTECTED] wrote: I would suggest either tracking down a set of images you like and then include them in your app's bundle, or rolling your own. Fewer chances for surprises that way. If you want the widgets that are in the upper-left

Re: Objective 2.0 properties

2008-10-17 Thread Ignacio Enriquez
I think I am beginning to understand this. What gives you the impression that NSObject (and thus all of its subclasses) conform to NSCopying? I think I was wrong... I will read the documentation about this. A property should be copy when you are interested in the *value* of the thing being

Re: Window widgets

2008-10-17 Thread Steve Christensen
On Oct 17, 2008, at 10:52 AM, Kyle Sluder wrote: On Fri, Oct 17, 2008 at 1:41 PM, Steve Christensen [EMAIL PROTECTED] wrote: I would suggest either tracking down a set of images you like and then include them in your app's bundle, or rolling your own. Fewer chances for surprises that way.

Re: Window widgets

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 2:04 PM, Steve Christensen [EMAIL PROTECTED] wrote: The OP's request was for a way to get ahold of the red, yellow and green dots used (currently) as window widgets so that he could use them as status images: In that case I extend my comment to include the following:

Re: Window widgets

2008-10-17 Thread Andre Masse
To cover up myself, I will steal those widgets' images from the system, using the method suggested and save them in my project. Thanks for your remarks guys, Andre Masse On Oct 17, 2008, at 14:04, Steve Christensen wrote: On Oct 17, 2008, at 10:52 AM, Kyle Sluder wrote: On Fri, Oct 17,

Re: Notification on Login Items change?

2008-10-17 Thread Nick Zitzmann
On Oct 17, 2008, at 10:38 AM, Karl Moskowski wrote: Is there a way to get notified when the entry is manually added or removed by the user from System Preferences? This way, I could keep my prefs check-box consistent with System Preferences while the app running. There is a way, but it

Re: Notification on Login Items change?

2008-10-17 Thread Karl Moskowski
On 17-Oct-08, at 2:19 PM, Nick Zitzmann wrote: There is a way, but it doesn't appear to be documented very well. Search the headers for LSSharedFileListAddObserver(). That appears to be par for the course with the LSSharedFileList APIs - none are well-documented (or at all, AFAIK).

Re: Objective 2.0 properties

2008-10-17 Thread Jim Correia
On Oct 17, 2008, at 1:59 PM, Ignacio Enriquez wrote: I think I am beginning to understand this. What gives you the impression that NSObject (and thus all of its subclasses) conform to NSCopying? I think I was wrong... I will read the documentation about this. A property should be copy

notification of NSSlider end of tracking

2008-10-17 Thread James Walker
I'd like to be notified when the mouse button has been released after some live tracking of a slider. I can probably do it by subclassing NSSlider and NSSliderCell, for instance overriding [NSCell stopTracking:at:inView:mouseIsUp:], but is there an easier way? -- James W. Walker,

Re: Objective 2.0 properties

2008-10-17 Thread Charles Steinman
--- On Fri, 10/17/08, Ignacio Enriquez [EMAIL PROTECTED] wrote: Regarding former responses... aObject.property is like using getter and setter methods (depending on the situation) and just property is going directly to the property ... Did I get it right? if so, why using setter methods

Re: notification of NSSlider end of tracking

2008-10-17 Thread Michael Ash
On Fri, Oct 17, 2008 at 2:33 PM, James Walker [EMAIL PROTECTED] wrote: I'd like to be notified when the mouse button has been released after some live tracking of a slider. I can probably do it by subclassing NSSlider and NSSliderCell, for instance overriding [NSCell

Re: [MVC Design] Model Controller Rationale?

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 5:28 AM, Oleg Krupnov [EMAIL PROTECTED] wrote: Is there any benefit in introducing a model controller, as another layer of indirection between the model and the view controller? Or should all business logic live right in the model? In what cases having a separate model

Delete myDriver.kext files from normal user.

2008-10-17 Thread Sachin Kumar
Hi, I am developing uninstall utility using cocoa to delete driver files from /System/Library/Extensions/myDriver.kext. I am using system(rm -r myDriver.kext) to delete the file. This is successfully done in root user. But in normal user permissions denied. Is there any other method to

Delete myDriver.kext files from normal user.

2008-10-17 Thread Sachin Kumar
Hi, I am developing uninstall utility using cocoa to delete driver files from /System/Library/Extensions/myDriver.kext. I am using system(rm -r myDriver.kext) to delete the file. This is successfully done in root user. But in normal user permissions denied. Is there any other method

Re: Delete myDriver.kext files from normal user.

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 8:51 AM, Sachin Kumar [EMAIL PROTECTED] wrote: I am using system(rm -r myDriver.kext) to delete the file. Please, *don't do this*. Pretend 'system' doesn't exist. unlink(2) does exactly what you're looking for. Is there any other method to delete the files in cocoa

Re: notification of NSSlider end of tracking

2008-10-17 Thread James Walker
Michael Ash wrote: On Fri, Oct 17, 2008 at 2:33 PM, James Walker [EMAIL PROTECTED] wrote: I'd like to be notified when the mouse button has been released after some live tracking of a slider. I can probably do it by subclassing NSSlider and NSSliderCell, for instance overriding [NSCell

Re: Notification on Login Items change?

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 4:14 PM, Karl Moskowski [EMAIL PROTECTED] wrote: LSSharedFileListRef list = LSSharedFileListCreate(kCFAllocatorDefault, kLSSharedFileListSessionLoginItems, nil); LSSharedFileListAddObserver(list, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode,

Re: Delete myDriver.kext files from normal user.

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 5:17 PM, Jonathon Kuo [EMAIL PROTECTED] wrote: Just curious why the recommendation against system()? 1) There's no need for it here. Why launch /bin/sh just to launch /bin/rm, when you can call unlink(2) yourself? 2) In this case, system(3) will launch a shell *as root*.

Re: Multiple persistent store coordinators gotchas?

2008-10-17 Thread Dave Dribin
On Oct 16, 2008, at 3:59 PM, Dave Dribin wrote: On Oct 15, 2008, at 5:52 PM, Melissa J. Turner wrote: Stale data is unlikely to be a problem unless you're expecting to load it significantly before you actually need it, which would be the same if you were loading it into a separate context on

Re: Screen not redrawing

2008-10-17 Thread Charles Steinman
--- On Fri, 10/17/08, Russ [EMAIL PROTECTED] wrote: My app is drawing acceptably (for now) the first time, but the screen isn't updating after anything happens. I am calling setNeedsDisplay:YES on the affected NSViews and their drawRect routines are getting called, but it seems the results

Re: fullscreen quicktime across multiple monitors

2008-10-17 Thread Memo Akten
I ended up writing a little app that plays a movie across all displays. If anyone else needs it (or has some advice to make it better) its here http://www.memo.tv/msa_qt_player_fullscreen_quicktime_player_across_multiple_video_outs --- Memo (Mehmet S.

Re: Screen not redrawing

2008-10-17 Thread Russ
Good idea, but no such luck. It's sequencing through them as expected, and the addresses match up to a separate dump I have. The rectangle is OK too. My views are flipped BTW. I'm real happy with how the draw looks, if it would just keep on drawing Is there anything on the NSWindow that

Re: File icons shown upside down in the Open Recent menu

2008-10-17 Thread Ken Ferry
Hi Ulf, You're probably calling -setFlipped: on the images somewhere else. Don't do this. The flipped attribute of NSImage is widely misunderstood. It describes the orientation of the internal coordinate system of the NSImage. Just as a superview never cares about the flippedness of its

Re: notification of NSSlider end of tracking

2008-10-17 Thread Ken Ferry
If you really only want to be informed of the final value, you can just set 'Continuous' to NO in IB. Mike's technique is good though, and can provide better UI if you have a cheap action you can take continuously and something more expensive that cannot afford to do live. For this, use a delay

Re: Screen not redrawing

2008-10-17 Thread I. Savant
On Oct 17, 2008, at 5:48 PM, Russ wrote: Anything else I'm missing that's needed to enable the new images to make it to the screen? I have a normal event loop NSApp run going, things would be going well if the redraws were visible. Thanks. Apologies if this is in reference to another

Re: Window widgets

2008-10-17 Thread Andrew Merenbach
Hi! With all due respect, I think that you might run into a potential trouble area -- or at least a gray area -- in doing that, as those standard window button images are likely copyrighted by Apple. The ethical thing to do would be to only use images to which you can secure the rights.

NSDictionaryController copies objects contained in the dictionary it is controlling?

2008-10-17 Thread Ron Aldrich
Folks, I'm trying to use the new NSDictionaryController in a project I'm working on, and I'm running into a bit of trouble. I have a dictionary which contains a list of MB_Robot objects, sorted by their unique IDs. Each MB_Robot provides the code necessary to operate a single robotic

Cocoa / OC exception handling

2008-10-17 Thread Dale Miller
I'm not clear about the semantics of the Objective-C exception- handling constructs, even after going through the Apple Objective-C documentation and the developer-doc conceptual Exception Handling. The definitions are very terse or missing and the examples are incomplete. The problem with

Re: Calling UNIX command from Cocoa

2008-10-17 Thread Aurora Phoenix
Without knowing more specifics, I am struggling to find why one would need a full-blown class just to invoke a command. At the simplest, one could use the system(3) call, or the exec/spawn/fork/popen families depending on what you need. It is of course, possible to wrap up something fancy like

Re: Converting from HTML

2008-10-17 Thread Aurora Phoenix
Hi DI... Depending on how heavy you need to understand the structure of the HTML, a simple parse using string chopping/ranges might be sufficient OR (personally I would prefer) use something like libxml2 / Xpath to grok the input. Note simple resolution of entities might not be sufficient,

Re: Notification on Login Items change?

2008-10-17 Thread Peter Ammon
On Oct 17, 2008, at 9:38 AM, Karl Moskowski wrote: In my Leopard-only app, I'm successfully using the LSSharedFileList APIs to add remove my app from the Login Items list, and to check at launch if it's in the list (so I can correctly default the setting in the app's prefs window). Is

Re: Screen not redrawing

2008-10-17 Thread Graham Cox
On 18 Oct 2008, at 8:48 am, Russ wrote: My app is drawing acceptably (for now) the first time, but the screen isn't updating after anything happens. I am calling setNeedsDisplay:YES on the affected NSViews and their drawRect routines are getting called, but it seems the results aren't

Re: Cocoa / OC exception handling

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 7:12 PM, Dale Miller [EMAIL PROTECTED] wrote: In particular, the examples show a series of @catch blocks arranged in most-specific to least-specific order. Since the different blocks in the example have different parameter specifications for the different blocks this

Re: Notification on Login Items change?

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 7:31 PM, Peter Ammon [EMAIL PROTECTED] wrote: Consider syncing with the list every time your app is activated. A user won't be able to add or remove items from SysPrefs without first deactivating your app, and when your app is activated again, you'll pick up any

Re: Notification on Login Items change?

2008-10-17 Thread Karl Moskowski
That's a good idea. Thanks. Karl Moskowski [EMAIL PROTECTED] Voodoo Ergonomics Inc. http://voodooergonomics.com/ On 17-Oct-08, at 7:31 PM, Peter Ammon [EMAIL PROTECTED] wrote: On Oct 17, 2008, at 9:38 AM, Karl Moskowski wrote: In my Leopard-only app, I'm successfully using the

Re: Window widgets

2008-10-17 Thread Andre Masse
No offence :-) Anyway, I end up rolling up my own. Couldn't get at the NSImage from the button. Was much quicker to draw them ;-) Thanks, Andre Masse On Oct 17, 2008, at 18:51, Andrew Merenbach wrote: Hi! With all due respect, I think that you might run into a potential trouble area

Re: Screen not redrawing

2008-10-17 Thread Russ
Sorry about the source code part, but this is an existing cross-platform commercial app being 64-bit-Cocoa-ized. It uses a portability library that was carbon and is being brought piecemeal to Cocoa. So there's like 10k lines of code for that at the moment. It's successfully building and

Re: Delete myDriver.kext files from normal user.

2008-10-17 Thread Michael Ash
On Fri, Oct 17, 2008 at 5:29 PM, Kyle Sluder [EMAIL PROTECTED] wrote: On Fri, Oct 17, 2008 at 5:17 PM, Jonathon Kuo [EMAIL PROTECTED] wrote: Just curious why the recommendation against system()? 1) There's no need for it here. Why launch /bin/sh just to launch /bin/rm, when you can call

Re: notification of NSSlider end of tracking

2008-10-17 Thread Michael Ash
On Fri, Oct 17, 2008 at 5:01 PM, James Walker [EMAIL PROTECTED] wrote: Wow, I never would have come up with that on my own. Thanks a lot! You're welcome. I can't take any credit for it, though, as I didn't come up with it on my own either. I no longer remember where I got it, but it was

Re: Notification on Login Items change?

2008-10-17 Thread Michael Ash
On Fri, Oct 17, 2008 at 7:43 PM, Kyle Sluder [EMAIL PROTECTED] wrote: On Fri, Oct 17, 2008 at 7:31 PM, Peter Ammon [EMAIL PROTECTED] wrote: Consider syncing with the list every time your app is activated. A user won't be able to add or remove items from SysPrefs without first deactivating

Re: notification of NSSlider end of tracking

2008-10-17 Thread Graham Cox
On 18 Oct 2008, at 6:45 am, Michael Ash wrote: - (IBAction)sliderMoved:(id)sender { SEL trackingEndedSelector = @selector(sliderEnded:); [NSObject cancelPreviousPerformRequestsWithTarget:self selector:trackingEndedSelector object:sender]; [self performSelector:trackingEndedSelector

Re: Objective 2.0 properties

2008-10-17 Thread Ken Thomases
On Oct 17, 2008, at 12:25 PM, Ignacio Enriquez wrote: Thanks for your responses. You're welcome. First: self.property is only or reading right? No. self.property may be used either to get the value of the property or, as the target of an assignment statement, to set the value of the

Re: Calling UNIX command from Cocoa

2008-10-17 Thread Clark Cox
On Fri, Oct 17, 2008 at 4:14 PM, Aurora Phoenix [EMAIL PROTECTED] wrote: Without knowing more specifics, I am struggling to find why one would need a full-blown class just to invoke a command. Because it is easier to use, and it handles many edge cases. Also, you are over-estimating the

Re: Delete myDriver.kext files from normal user.

2008-10-17 Thread Jonathon Kuo
On Oct 17, 2008, at 5:33 PM, Michael Ash wrote: On Fri, Oct 17, 2008 at 5:29 PM, Kyle Sluder [EMAIL PROTECTED] wrote: On Fri, Oct 17, 2008 at 5:17 PM, Jonathon Kuo [EMAIL PROTECTED] wrote: Just curious why the recommendation against system()? 1) There's no need for it here. Why launch

Re: Delete myDriver.kext files from normal user.

2008-10-17 Thread Chris Hanson
On Oct 17, 2008, at 5:55 PM, Jonathon Kuo wrote: If the coder doesn't take care to use fully qualified pathnames like /bin/rm, etc., then it opens the door to security issues. That's not an inherent problem with system(), per se, but the coder. Wouldn't fork()/exec() and NSTask also suffer

Re: NSDictionaryController copies objects contained in the dictionary it is controlling?

2008-10-17 Thread Ron Lue-Sang
On Oct 17, 2008, at 4:08 PM, Ron Aldrich wrote: Folks, I'm trying to use the new NSDictionaryController in a project I'm working on, and I'm running into a bit of trouble. I have a dictionary which contains a list of MB_Robot objects, sorted by their unique IDs. Each MB_Robot provides

Re: Delete myDriver.kext files from normal user.

2008-10-17 Thread Clark Cox
On Fri, Oct 17, 2008 at 5:55 PM, Jonathon Kuo [EMAIL PROTECTED] wrote: On Oct 17, 2008, at 5:33 PM, Michael Ash wrote: On Fri, Oct 17, 2008 at 5:29 PM, Kyle Sluder [EMAIL PROTECTED] wrote: On Fri, Oct 17, 2008 at 5:17 PM, Jonathon Kuo [EMAIL PROTECTED] wrote: Just curious why the

Re: table bindings, value transformer per row?

2008-10-17 Thread Ron Lue-Sang
Nope. No way to swap out the valuetransformer of the binding per row. You can use part of Keary's suggestion tho. Don't set a valuetransformer at all in the binding for the column. Use the willDisplayCell: delegate method to take the value out of the cell, apply your own value

Re: Delete myDriver.kext files from normal user.

2008-10-17 Thread Michael Ash
On Fri, Oct 17, 2008 at 8:55 PM, Jonathon Kuo [EMAIL PROTECTED] wrote: On Oct 17, 2008, at 5:33 PM, Michael Ash wrote: And most important of all (I think), it almost always opens a security hole. This case is a great example. The system() call as posted uses rm as the command. This in turn

Re: Sharing a Bindings Controller between nibs

2008-10-17 Thread Ron Lue-Sang
On Oct 14, 2008, at 4:06 PM, Graham Cox wrote: On 15 Oct 2008, at 9:30 am, Citizen wrote: I have a master-detail interface, where the Detail interface is in a separate nib from the main Master interface (so that different Detail interfaces can be swapped in). The main Master interface

Re: Cocoa / OC exception handling

2008-10-17 Thread Kyle Sluder
On Fri, Oct 17, 2008 at 10:00 PM, Dale Miller [EMAIL PROTECTED] wrote: Does the word 'type' here mean 'the class of the exception object'? Yes. It means type as in the type system. If the class of the exception being thrown is equal to or is a subclass of the type of the pointer provided in

Cocoa / OC exception handlng - answered

2008-10-17 Thread Dale Miller
Thanks to Kyle Sluder for answering my questions. Dale Miller [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Implementing a KVO/Bindings-Compliant Bridge-Pattern in Cocoa

2008-10-17 Thread Ron Lue-Sang
On Oct 15, 2008, at 2:53 AM, Sebastian Morawietz wrote: Hi folks, I'm trying to implement a simple object bridge in cocoa where the bridge object acts as a kvo/bindings-compliant drop in for some arbitrary other NSObject-instance. Here is my problem (more details in the attached code): A

Re: Objective 2.0 properties

2008-10-17 Thread Ignacio Enriquez
Ken: I'm starting to think that you should avoid declared properties and dot syntax for now. With some of the newer features of Objective-C and Cocoa, it can be helpful for novices to first become proficient with the old way so they understand the details which are hidden by the new way. In

Re: Screen not redrawing

2008-10-17 Thread Russ
Check to make sure [window isFlushWindowDisabled] is NO and [window isAutodisplay] is YES. Yes, both OK. Also, try dropping a standard control (e.g. a button) in and see if it redraws to the pressed state when you press it. When I do this programmatically after creating the main window's

Re: Objective 2.0 properties

2008-10-17 Thread Ken Thomases
On Oct 17, 2008, at 10:47 PM, Ignacio Enriquez wrote: I'm starting to think that you should avoid declared properties and dot syntax for now. With some of the newer features of Objective-C and Cocoa, it can be helpful for novices to first become proficient with the old way so they

CompositeToPoint - avoid its use?

2008-10-17 Thread Matt
Recently found this in the Apple NSImage docs re: CompositeToPoint method: Important: If you are writing new code, or updating old code, you should avoid using this method. Instead, you should use the drawAtPoint:fromRect:operation:fraction: or drawInRect:fromRect:operation:fraction: method to

Re: CompositeToPoint - avoid its use?

2008-10-17 Thread Ken Ferry
The composite methods are not more efficient. It isn't possible to 'ignore' the current transform matrix - it's possible to do further calculation to undo (parts of) its effects. This is what the composite methods do. The primary reason to avoid the composite methods is that they have surprising

10.4 v. 10.5 SDK question

2008-10-17 Thread Steve Cronin
Folks; I have developed an application with XC 3.1 on a 10.5 Intel machine using the 10.5 SDK w/ a 10.4 deployment target. (No GC for me!) In testing I immediately ran into a few difficulties on a 10.4 PPC machine. In the course of tracking down these issues I ended up installing XC 2.5

Re: 10.4 v. 10.5 SDK question

2008-10-17 Thread Ken Thomases
On Oct 18, 2008, at 12:18 AM, Steve Cronin wrote: I have developed an application with XC 3.1 on a 10.5 Intel machine using the 10.5 SDK w/ a 10.4 deployment target. (No GC for me!) In testing I immediately ran into a few difficulties on a 10.4 PPC machine. In the course of tracking down