Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    js @ untrusted OS
    @midar:matrix.org
    [m]
    actually, nullable only works on one level anyway, so that's easy - just put _Nullable before the name 🙂
    Letterus
    @letterus:synod.im
    [m]
    yeah, sounds easy. understanding machine…. 😉
    but great you‘re working an ObjFW again. that‘s motivating!
    js @ untrusted OS
    @midar:matrix.org
    [m]
    the only thing that will be hard is automatically generating isEqual: and hash.
    because I can't know whether something is an object or a scalar or a struct
    same for dealloc
    I think I will just let it create comments for those for you to fill out
    and then you can uncomment it for objects 🙂
    Letterus
    @letterus:synod.im
    [m]
    yes, nice and easy
    js @ untrusted OS
    @midar:matrix.org
    [m]
    ohhh, more ideas! objfw-new could actually store settings with things such as a license template to use for new files 😉
    e.g. ~/.config/objfw-new/default_license
    yeah, moving this away from a shell script was the right call
    1 reply
    Letterus
    @letterus:synod.im
    [m]
    yes. default file header and default imports (eg ObjGTK/ObjGTK.h) would be nice 😉
    js @ untrusted OS
    @midar:matrix.org
    [m]
    ideally I'd like the functionality of objfw-embed also integrated into objfw-new. The only problem is that I need to be able to use objfw-embed without having ObjFW for tests. So, it must remain a shellscript. Or I integrate it into objfw-new and keep objfw-embed just for the tests and no longer use it
    could even go further and put it into the project dir 😉
    just have a .objfw-new file there with config 😄
    Letterus
    @letterus:synod.im
    [m]
    yes, even better
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] objfw-new: Add initial support for properties (tags: trunk) (link (https://objfw.nil.im/info/759d73547f94c7ea421161ee621d896570fc06ddf57bf13ea5ca69cc008af663))
    2 replies
    js
    @js:nil.im
    [m]
    (that is for parsing types + names)
    Oh, it's that late already? Time to go to work! 😄
    Letterus
    @letterus:synod.im
    [m]
    Pew. Really feeling bad these days. And I have to do PHP and web as well. Think it‘s time to start my therapy and do ObjFW again. 😉
    js
    @js:nil.im
    [m]
    Are your therapy and ObjFW two things or one? 😄
    Letterus
    @letterus:synod.im
    [m]
    heh! one of course 😁
    js
    @js:nil.im
    [m]
    Relatable 😁
    Letterus
    @letterus:synod.im
    [m]
    but my therapist would recommend ObjFW for the calm of mind, I am quite sure 😉
    js
    @js:nil.im
    [m]
    I like to work on ObjFW when I had to deal with boring or ugly stuff at work.
    To get a balance again ;)
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] objfw-new: Automatically generate dealloc (tags: trunk) (link (https://objfw.nil.im/info/8465dcaa25511e87287aadbf99a542c91392ea4cfe887cf7fb800792061e36b0))
    [ObjFW] objfw-new: Add support for property attributes (tags: trunk) (link (https://objfw.nil.im/info/41bf4fe57b0dc41180e47d617ddee7fc3ce78d521e50dd3596b0c4f819716ae6))
    js
    @js:nil.im
    [m]
    You can now do objfw-new --class --property="(readonly, copy, nullable) OFString *foo" MyClass and it will generate the class for you correctly - including dealloc.
    Letterus: Have fun 😉
    js#6763
    @_discord_774066653708681226:t2bot.io
    [m]
    Letterus: At some point it'll be at the point where it can generate entire classes 😄
    --method="- (void)foo { bar(); }"? 😄
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] objfw-new: Add short options (tags: trunk) (link (https://objfw.nil.im/info/03227c8a544bee09706585a456ad78e12a8b3ed28d15d94adda3e270a4ead6c9))
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] OFURLHandler: Add +[openItemAtURL:mode:] (tags: trunk) (link (https://objfw.nil.im/info/338d452f33e7a2d674095b31df3430ea84771683ef311888ef1625b3f6b57c4f))
    [ObjFW] OFURLHandler: Make +[handlerForURL:] nonnull (tags: trunk) (link (https://objfw.nil.im/info/9e7f4f34b9cc276b9accb4186740bef69d79115da40a602f69e4883fcdbe333c))
    RSS
    @rss:maunium.net
    [m]
    [ObjFW] OFURLHandler: Minor documentation fix (tags: trunk) (link (https://objfw.nil.im/info/0a3a76c56cb4a70c442fc1ddfc3dae7450967b2350f690c892541d4dc8cff254))
    Frityet#9529
    @_discord_434866626794487811:t2bot.io
    [m]
    not an objFW question, but does anyone know how to call a method with 2 arguments?
        NSNotification *notif = [NSNotification notificationWithName: cstring_to_nsstring(notification->title),
                                                              object: nil];
    this is giving me an error
    ```objc
    • (instancetype)notificationWithName:(NSNotificationName)aName object:(nullable id)anObject;
      ``` this is what im trying to call
    js
    @js:nil.im
    [m]
    [obj doFooWithBar: bar qux: qux];
    Frityet#9529
    @_discord_434866626794487811:t2bot.io
    [m]
    wait so what did I do wrong
    js#6763
    @_discord_774066653708681226:t2bot.io
    [m]
    no comma
    Frityet#9529
    @_discord_434866626794487811:t2bot.io
    [m]
    oh
    thanks man!!!
    hahahah
    lmaoo
    Letterus
    @letterus:synod.im
    [m]
    Frityet#9529: congrats for starting with objc! 👍😀
    1 reply