• 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
Missing vars in Swift-ified interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing vars in Swift-ified interface


  • Subject: Missing vars in Swift-ified interface
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 25 Feb 2016 09:29:34 -0800

I’m examining the Swift interface exposed by my Objective-C API, and I discovered that one class has two properties mysteriously missing. Here’s the start of the Obj-C interface:

@interface CBLAttachment : NSObject

/** The owning document revision. */
@property (readonly) CBLRevision* revision;

/** The owning document. */
@property (readonly) CBLDocument* document;

/** The filename. */
@property (readonly, copy) NSString* name;

/** The MIME type of the contents. */
@property (readonly, nullable) NSString* contentType;

and here’s the equivalent part of the translated Swift interface, as shown in the Xcode 7.3(beta) assistant pane:

public class CBLAttachment : NSObject {

    

    /** The owning document revision. */

    

    /** The owning document. */
    public var document: CBLDocument { get }

    

    /** The filename. */

    

    /** The MIME type of the contents. */
    public var contentType: String? { get }

Note that `revision` and `name` are missing.

* If I rename either property in the .h file and save, the Swift interface then shows that property.
* If I change the type (like from NSString* to int), nothing happens.
* I have another class with an identical `name` property, which does appear in the Swift interface.

Anyone seen anything like this? Should I file a bug report against Xcode?

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Can an NSString literal's bytes be moved to a different section of the executable?
  • Next by Date: Re: Can an NSString literal's bytes be moved to a different section of the executable?
  • Previous by thread: Re: Can an NSString literal's bytes be moved to a different section of the executable?
  • Next by thread: How to fix "misuse of 'nonnull'" warnings in Xcode 7.3?
  • Index(es):
    • Date
    • Thread