Re: "weak link" framework refs for 10.1 compatibility?
Re: "weak link" framework refs for 10.1 compatibility?
- Subject: Re: "weak link" framework refs for 10.1 compatibility?
- From: Ondra Cada <email@hidden>
- Date: Mon, 11 Nov 2002 01:11:40 +0100
On Saturday, November 9, 2002, at 04:40 , Marco Scheurer wrote:
Is that true? The following code, in a category of NSTextField, compiled
on 10.2 does not break on 10.1.x (text field is not rounded).
- (void) beRounded
{
if (IsJaguarOrLater()) {
[self setBezeled:YES];
[self setBezelStyle:NSTextFieldRoundedBezel];
}
}
Not only the NSTextFieldRoundedBezel constant, but also the setBezelStyle
method are new to 10.2.
Wow -- you sure? With the method it is just natural, but with constants it
should not work, so far as I understand how the linker behaves :-O :-O
What would happen in case you try to print out the value of the constant?
A runtime error? Or a nonsense value will be displayed?
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.