Re: string convertion: converting getter name to setter

2008-09-04 Thread Steve Weller
(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/bagelturf%40mac.com This email sent to [EMAIL PROTECTED] Steve Weller [EMAIL PROTECTED] Technical Writing, Editing, Developer Guides, and a little Cocoa

Re: NSMutableDictionary autorelease chrashes application

2008-07-18 Thread Steve Weller
and independent. It it's dependent, they you have a responsibility for it, maybe many times over. If it is independent, then you don't. This also talks in terms of the relationship, not the means to establishing that relationship. Steve Weller [EMAIL PROTECTED] Technical Writing, Editing, Developer

Protocol-conforming object does not include retain?

2008-07-11 Thread Steve Weller
. Steve Weller [EMAIL PROTECTED] Technical Writing, Editing, Developer Guides, and a little Cocoa ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: How to create to-many accessor methods at runtime

2008-07-08 Thread Steve Weller
+resolveInstanceMethod and actually create the methods that are needed. Steve Weller [EMAIL PROTECTED] Technical Writing, Editing, Developer Guides, and a little Cocoa ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: How to create to-many accessor methods at runtime

2008-07-08 Thread Steve Weller
On Jul 8, 2008, at 2:28 AM, Mike Abdullah wrote: On 8 Jul 2008, at 07:10, Steve Weller wrote: What I am attempting to do is not working. -valueForKey: does not look for methods with -respondsToSelector: to figure out if methods exist sufficient to have KVC. So overriding this has

Re: How to create to-many accessor methods at runtime

2008-07-08 Thread Steve Weller
On Jul 8, 2008, at 8:55 AM, Mike Abdullah wrote: On 8 Jul 2008, at 15:45, Steve Weller wrote: On Jul 8, 2008, at 2:28 AM, Mike Abdullah wrote: On 8 Jul 2008, at 07:10, Steve Weller wrote: What I am attempting to do is not working. -valueForKey: does not look for methods

How to create to-many accessor methods at runtime

2008-07-06 Thread Steve Weller
-valueForUndefinedKey:, but that gives me the responsibility of creating and returning the proxy NSArray that implements accesses to -countOfForKey: and - objectInForKey:atIndex: Is there a better way to be KVC compliant and yet create the methods dynamically? Steve Weller [EMAIL PROTECTED

Re: How to create to-many accessor methods at runtime

2008-07-06 Thread Steve Weller
method and select the correct one based on the selector I am passed after dropping the arguments in as needed, then transfer the return result back. - Ben Steve Weller [EMAIL PROTECTED] Technical Writing, Editing, Developer Guides, and a little Cocoa

Re: Why aren't my bindings firing?

2008-06-28 Thread Steve Weller
is two-way, while establishing non-view bindings is one-way. It's time for mmalc to chime in and put everyone straight. Steve Weller [EMAIL PROTECTED] Technical Writing, Editing, Developer Guides, and a little Cocoa ___ Cocoa-dev mailing list

Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)

2008-05-23 Thread Steve Weller
The documentation is for the most part oriented around the implementation of the technologies offered (inside out view) rather than the solving of the challenged faced (outside in view). For experts this is no great barrier, because they are already arguably inside. But see how this

Re: File's Owner

2008-05-23 Thread Steve Weller
The hang up that I see is that this documentation give no clue as to the reason for File's Owner's existence. What problem does it solve? Fundamentals mean nothing unless they read like a story: you have to give each thing a reason to exist so that the reader has a place to mentally

Re: Cocoa et al as HCI usability problem

2008-05-21 Thread Steve Weller
Scott, Thank you for taking time to reply. You must be getting pretty tired of all this. Worse, this is not a documentation issue, it's an Apple issue. On May 20, 2008, at 11:51 PM, Scott Anguish wrote: [helpful pointers and other parts snipped] Ultimately, learning is a very

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Steve Weller
However you slice it and whatever your personal experience, I believe that what we are experiencing with the docs are the early symptoms of massive scaling of the problem vs. insufficient scaling of the resources to tackle it. If anyone can fix this, it is Apple. If you care to invest the

Re: Learning Curve/Documentation Challenge/Recommendation

2008-05-17 Thread Steve Weller
On May 17, 2008, at 7:19 AM, Hamish Allan wrote: On Sat, May 17, 2008 at 3:03 PM, colo [EMAIL PROTECTED] wrote: F-Script [...] gives you the code to Create a window from scratch and logically place the buttons on the window by coordinates. That kind of knowing how to make a window without IB

Re: How to import drawing paths into a Cocoa application?

2008-04-26 Thread Steve Weller
On Apr 21, 2008, at 5:23 PM, Steve Weller wrote: I my app I want to be able to use drawing paths for two purposes: 1. Clip images to the path 2. Generate points that lie on the path as a function of the distance along the path I want to be able to create paths with Omnigraffle or some

How to import drawing paths into a Cocoa application?

2008-04-21 Thread Steve Weller
I my app I want to be able to use drawing paths for two purposes: 1. Clip images to the path 2. Generate points that lie on the path as a function of the distance along the path I want to be able to create paths with Omnigraffle or some other vector-image app, and export them to PDF or

Re: NSPopupButton Bindings

2008-04-19 Thread Steve Weller
On Apr 19, 2008, at 5:58 PM, Johnny Lundy wrote: Good evening, I am having trouble understanding the bindings for NSPopupButton. View: NSPopupButton Controller: NSArrayController, just for the popup button Model: NSMutableArray of NSMutableDictionaries. I have the array controller bound

Re: Communications between multiple NIB's

2008-03-24 Thread Steve Weller
On Mar 24, 2008, at 3:27 PM, Gerd Knops wrote: Is there a way to programmatically connect to a NIB file and read it's outlets without changing my File's Owner? I have a color well in one NIB (My Prefs NIB) and a window in another. I want the color well to change the window's background. I

Re: Correct use of NSViewController

2008-03-21 Thread Steve Weller
I'm going down this same path I think. I have a split view with a browser and a document. The way I solve it is to have the window controller have outlets to the scroll views of the two panes of the split view. Then in the window controller I do this: - (void)windowDidLoad { [super

Re: Correct use of NSViewController

2008-03-21 Thread Steve Weller
On Mar 21, 2008, at 2:31 PM, Cathy Shive wrote: 1, window is about to close (wish there was a more reliable place to do this, but it has to be before dealloc): windowController: - (void)windowWillClose { [mViewController removeObservations]; // this causes the method to be called all

Re: User Defaults Controller - IB

2008-03-18 Thread Steve Weller
Check out http://cocoacast.com/, in particular episodes 14, 15, 16 for prefs (and notifications). The example they show does not use bindings, but by binding the view objects you can scrap much of the code. Also see

Re: Printing Page Orientation

2008-03-18 Thread Steve Weller
On Mar 18, 2008, at 8:31 PM, John Bishop wrote: Anyone know how to change the printing page orientation or scaling in Xcode 3.0 for data model diagrams (or any other printing task in Xcode)? It used to be available in Page Setup, but that disappeared in 3.0. Thanks. I would like to

Re: Subview bounds resizing when frame resizes

2008-03-02 Thread Steve Weller
On Mar 2, 2008, at 4:03 PM, Steve Weller wrote: I have a custom view with a custom subview. I can't seem t make the bounds of the subview stick. When the view changes the subview's frame, I want the subview's bounds to stay exactly as I set them the first time. The whole point of having