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
Thanks for this awesome library! I'd sponsor it if you turned on GitHub Sponsors 💖
Also, GitHub Discussion is a nice feature and would probably be better for the question I'm asking here:
Can you get an Object from a Class or can you only go the other direction?
Thank you, 🙇🏻♂️
The text was updated successfully, but these errors were encountered:
You can't really, since there is not a one-to-one relationship between these two. An object has one class, but a class can have many objects (called instances).
You can however create a new object from a class by simply sending new to the class, if that's what you're asking:
let cls = class!(NSObject);let obj:Object = msg_send![cls, new];
Hi @SSheldon 👋😀,
Thanks for this awesome library! I'd sponsor it if you turned on GitHub Sponsors 💖
Also, GitHub Discussion is a nice feature and would probably be better for the question I'm asking here:
Can you get an
Object
from aClass
or can you only go the other direction?Thank you, 🙇🏻♂️
The text was updated successfully, but these errors were encountered: