Re: string convertion: converting getter name to setter

2008-09-04 Thread Steve Weller
moderators at cocoa-dev-admins(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, Devel

Re: NSMutableDictionary autorelease chrashes application

2008-07-18 Thread Steve Weller
method returns an unretained object". How about "dependent" 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

Protocol-conforming object does not include retain?

2008-07-11 Thread Steve Weller
rning goes away. Why is this addition needed? I don't see it used in other code. It's as though the compiler believes that conformance to a protocol implies that it exclusively provides those methods, which is not the idea of protocol conformance at all. Steve Weller [EMAIL

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 with

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 no

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

2008-07-07 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-06 Thread Steve Weller
I set up one NSInvocation per 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, Devel

How to create to-many accessor methods at runtime

2008-07-06 Thread Steve Weller
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] Technical Writing

Re: Why aren't my bindings firing?

2008-06-28 Thread Steve Weller
Field is KVC/KVO- compliant. That's generally true of most views listed in that reference. Second, establishing a binding to a view 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 P

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 hang

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 trips

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 personal

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 t

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

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 EP

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 to

Re: How to use bindings with IKImageBrowserView?

2008-04-04 Thread Steve Weller
. // - - (void)imageBrowser:(IKImageBrowserView*)view removeItemsAtIndexes: (NSIndexSet*)indexes { [imageBrowserArrayController removeObjectsAtArrangedObjectIndexes:indexes]; } On Fri, Apr 4, 2008 at 1:01 AM, Steve Weller <[EMAIL PROTECTED]> wrote: I am attempting to use bindings to

How to use bindings with IKImageBrowserView?

2008-04-03 Thread Steve Weller
I am attempting to use bindings to supply an IKImageBrowserView with data. I have successfully used IKImageBrowserView with a data source, but cannot get bindings to work. Should it work with bindings? The array controller's contentArray is hooked up to an NSMutableArray called storedImag

Re: NSScroller question

2008-03-29 Thread Steve Weller
Try looking at the source for TextEdit. TextEdit adds a pop-up at the end of the horizontal scroller by overriding NSScrollView's tile: method. You may be able to change the layout so that the end of the NSScroller is clipped off. On Mar 29, 2008, at 4:57 AM, [EMAIL PROTECTED] wrote: Tha

Re: Communications between multiple NIB's

2008-03-29 Thread Steve Weller
On Mar 28, 2008, at 11:27 AM, Lincoln Green wrote: I followed your suggestion, and it worked great! However, when I delete the preferences file form /Library/Preferences/, my application won't put up a window. Any suggestions to get around this? Check the console window in Xcode and then st

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 hav

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 the

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 wi

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 kn

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 http://developer.apple.com/documentation/Cocoa/Conceptual/DrawColor/Tasks/S

NSDocument and control of multiple views

2008-03-02 Thread Steve Weller
I have a document-based application that has a custom view that fills much of the content view. In that custom view I want to display a "page" like a piece of paper. As the window is scaled, the "page" scales. This all works either if I code the page as a part of the custom view, or if I

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

Subview bounds resizing when frame resizes

2008-03-02 Thread Steve Weller
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 this subview is to have a separate coordinate sys

Re: Scrollers on custom view appearing but not disappearing

2008-03-01 Thread Steve Weller
On Feb 29, 2008, at 10:33 PM, Quincey Morris wrote: A couple of small points: -- It's not quite correct to use the superview's frame to calculate a view's frame, since they are in different coordinate systems. You really should use [[self superview] bounds], which is in the same coordina

Re: Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Steve Weller
On Feb 29, 2008, at 4:00 PM, Steve Weller wrote: I have a custom view into which I can draw a background color and a centered rectangle. As the window is resized, the rectangle stays centered and is clipped when the window gets small. I want to define a canvas size slightly bigger than

Re: Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Steve Weller
On Feb 29, 2008, at 4:46 PM, Quincey Morris wrote: On Feb 29, 2008, at 16:00, Steve Weller wrote: - (void) setFrameSize:(NSSize)newSize { NSSize cSize; cSize = [self canvasSize]; // Provides a size // Use the larger dimensions of the two rects if

Scrollers on custom view appearing but not disappearing

2008-02-29 Thread Steve Weller
I have a custom view into which I can draw a background color and a centered rectangle. As the window is resized, the rectangle stays centered and is clipped when the window gets small. I want to define a canvas size slightly bigger than the rectangle and have the scrollers appear when th