Hmm, us Americans spell it 'centimeter,' and according to the mentioned docs, NSRulerView does too. The docs also say it supports four different units by default (in, cm, pt, pc). Not sure what 'default' means in this case, but I'd assume it means calling +registerUnitWithName:... is redundant for these four units. I've never used NSRulerView, but the docs seem to imply that your code should work. (Although it's certainly a strange style to avoid setting the new instance of NSRulerView to a variable before -setMeasurementUnits: on it, even if that's the only message you send to it; but I'm guessing that was just for brevity.) _______________________________________________
Cocoa-dev mailing list ([email protected]) 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]
