Skip to content

Commit

Permalink
todo NSCopying
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Nov 23, 2022
1 parent 74944d8 commit f604a71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/objc2/src/foundation/copying.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub unsafe trait NSCopying: Message {
/// The output type.
///
/// This is usually `Self`, but e.g. `NSMutableString` returns `NSString`.
/// TODO: Verify???
type Output: Message;

fn copy(&self) -> Id<Self::Output, Self::Ownership> {
Expand All @@ -39,7 +38,9 @@ pub unsafe trait NSCopying: Message {
///
/// Note that the `mutableCopy` selector must return an owned object!
pub unsafe trait NSMutableCopying: Message {
/// TODO
/// The output type.
///
/// This is usually `Self`, but e.g. `NSString` returns `NSMutableString`.
type Output: Message;

fn mutable_copy(&self) -> Id<Self::Output, Owned> {
Expand Down

0 comments on commit f604a71

Please sign in to comment.