You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They have an ObjectType trait, which allows abstracting over the retain/release methods. I can see the appeal, but it fundamentally won't really work with our crate structure, and I think it's also more user-friendly if CoreFoundation-like types get their own rc::Id-like type.
I believe I've grabbed the most important stuff by now, if not, then the full migration of that crate should highlight if objc2/icrate is lacking something.
There are some things that could be useful for making declare_class! static some day
Also for this, it is possible for fields to be Default, since they implement the special CXX constructor.
Perhaps use their exception.rs assembly code approach to allow handling exceptions without invoking clang. I have written that as a doc comment on the try_catch method we're exposing in objc_sys.
Related projects to draw inspiration from:
fruity: I'd like to contribute nvzqz/fruity#13ObjectTypetrait, which allows abstracting over theretain/releasemethods. I can see the appeal, but it fundamentally won't really work with our crate structure, and I think it's also more user-friendly ifCoreFoundation-like types get their ownrc::Id-like type.CoreFoundation-like types, we could yet take some inspiration there.~ Moved to Add support forCoreFoundation-like libraries #556.Object, which I've found to be overkill for almost all applicationsobjcmodule is similar to ourruntimeStaticWritten a note in our code about it,NSNumbers andNSNullobjc-rs(not on crates.io)cacaoobjc2/icrateis lacking something.objrsdeclare_class!static some dayDefault, since they implement the special CXX constructor.Perhaps use their. I have written that as a doc comment on theexception.rsassembly code approach to allow handling exceptions without invokingclangtry_catchmethod we're exposing inobjc_sys.cocoa/core-foundation/core-graphicsrustkitheader-translator? But irrelevant now.uikit-sysobjr: Praise! (Also, let's collaborate!) drewcrawford/objr#1blocksrasyncsupport, which I've moved toasyncsupport #279.rust-macios: Useobjc2martial-plains/rust-macios#63apple-sys: Let's collaborate onobjc2! youknowone/apple-sys#9objc-deriveswift-rscidre. Moved to Collaborate with / grab ideas fromcidre#557.Related projects in other languages:
@objcattributeobjpffigenobjcdarwin,objcderelictLinking to other runtimes was done in #19
And other initiatives: