• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "weak link" framework refs for 10.1 compatibility?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: "weak link" framework refs for 10.1 compatibility?
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: "weak link" framework refs for 10.1 compatibility? (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: Window Placement
  • Next by Date: Re: Oddness with NSArray (Most likely some other stupid mistake)
  • Previous by thread: Re: "weak link" framework refs for 10.1 compatibility?
  • Next by thread: Re: "weak link" framework refs for 10.1 compatibility?
  • Index(es):
    • Date
    • Thread