On 9 Nov 2008, at 7:11 pm, Nathan Kinsinger wrote:

On Nov 9, 2008, at 12:10 AM, Graham Cox wrote:

What is the value expected for:

"IKUImaxSize
Controls whose dimensions are the maximum allowable for the filter view. A width or height of 0 indicates that that dimension of the view is not restricted. If the size requested is too small, the filter is expected to return a view as small as possible. It is up to the client to verify that the returned view fits into the context."

(from 
http://developer.apple.com/documentation/GraphicsImaging/Reference/IKFilterUIAddition/IKFIlterUI_Reference.html)



I tried an NSValue containing an NSSize, and a NSNumber containing a float. Both throw up "unrecognised selector" exceptions - in the first case for -floatValue and the second for - getCString:maxLength:encoding:



I have defended the documentation in the past but this is some of the worst I've seen - it's below minimum, since it doesn't even tell you the type of an expected parameter, let alone properly explain how it gets used.

A google search on "IKUImaxSize" returned:
http://www.mailinglistarchive.com/[EMAIL PROTECTED]/msg02191.html

Interesting sidenote, the 'm' in max is not capitalized.


Thanks Nathan, that does indeed seem to work. Is that really quite weird though, or what? Intern coder maybe?

I get better results, but still pretty poor, since while the controls now fit within the desired space, they overlap each other and don't resize very nicely. Well, some do and some don't. Which suggests to me that however they are set up with respect to autoresizing is done inconsistently.

--Graham
_______________________________________________

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 cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to