• Home
  • About

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
By using Twitter’s services you agree to our Cookie Use and Data Transfer outside the EU. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
jckarter's profile
Joe Groff
Joe Groff
Joe Groff
@jckarter

Joe Groff

@jckarter

Swift emotional support doggo

Joined January 2009
  • © 2016 Twitter
  • About
  • Help
  • Terms
  • Privacy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @

Retweet this to your followers?

Optional comment for Retweet
 
 

Saved searches

  • Remove
  • Verified account @
Suggested users
  • Verified account @
  • Verified account @
140

Are you sure you want to delete this Tweet?

Promote this Tweet

Block

  • Add a location to your Tweets

    When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always have the option to delete your location history. Learn more

    Profile summary

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    Preview

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Buy Now

    Hmm... Something went wrong. Please try again.

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    Previous Tweet Next Tweet
    Joe Groff ‏@jckarter May 11

    Joe Groff Retweeted Zed

    If you answered "yes" to @zedshaw's poll, what did you need to use ObjC for in your Swift app?https://twitter.com/zedshaw/status/730431644616646659 …

    Joe Groff added,

    Zed @zedshaw
    Rephrase: If I want to use Swift to write a real serious iOS app I would still need to WRITE obj-c code.
    • Retweets 9
    • Likes 15
    • Shay Thompson Peter Barsby Michael Langford Matt Bridges Michael Tsai Yariv Nissim Alexis Gallagher Xeon Xai Brian Gesiak
    11:28 AM - 11 May 2016
    0 replies 9 retweets 15 likes
      1. Javi ‏@Javi May 11 San Francisco, CA

        @jckarter last time I did it was to return something other than self from a constructor. This was totally valid in Obj-C...

        0 replies 0 retweets 2 likes
      2. View other replies
      3. Joe Groff ‏@jckarter May 11

        @Javi A protocol extension initializer can reassign self, if that's the only reason you needed ObjC.

        0 replies 0 retweets 3 likes
      4. View other replies
      5. Javi ‏@Javi May 11 Oakland, CA

        @jckarter kind of, but I needed that to be the designated initializer :-/

        0 replies 0 retweets 2 likes
      6. View other replies
      7. Joe Groff ‏@jckarter May 11

        @Javi To be able to super.init, it'd need to allocate the new object as the dynamic type but only allocate the base class part of the object

        0 replies 0 retweets 1 like
      8. Joe Groff ‏@jckarter May 11

        @Javi s/only allocate/only initialize

        0 replies 0 retweets 1 like
      1. andrew mcknight ‏@ndrewmcknight May 11

        @jckarter @zedshaw I used an ObjC bridge to get values from GCC_PREPROCESSOR_DEFINITIONS in a Swift CLI... is there a better way?

        0 replies 0 retweets 2 likes
      2. Joe Groff ‏@jckarter May 11

        @ndrewmcknight @zedshaw For macros we don't import, a C shim's your best bet. If it's just a binary flag you might try swiftc -D and #if.

        0 replies 0 retweets 2 likes
      3. andrew mcknight ‏@ndrewmcknight May 12

        @jckarter @zedshaw I'm intrigued by this C shim. Could you show an example?

        0 replies 0 retweets 0 likes
      4. Joe Groff ‏@jckarter May 12

        @ndrewmcknight @zedshaw To bring complex C macros into Swift, you can wrap them in your bridging header:https://gist.github.com/jckarter/093fd6486953704a690988aa232c6750 …

        0 replies 0 retweets 1 like
      1. Joe Groff ‏@jckarter May 11

        @rodbrown88 To help with that, Xcode can generate an interface from Swift files, under the assistant view as "Generated Interface".

        0 replies 0 retweets 0 likes
      2. Tweet unavailable
      3. Joe Groff ‏@jckarter May 11

        @rodbrown88 Filed https://bugs.swift.org/browse/SR-1488 . Thanks again.

        0 replies 0 retweets 2 likes
      1. Tricer∴tops ‏@Tricertops May 11 Slovak Republic

        @jckarter @zedshaw Answered “no”, but I guess objc_msgSend is not possible from Swift 🙂

        0 replies 0 retweets 0 likes
      2. Joe Groff ‏@jckarter May 11

        @Tricertops Not directly. 'performSelector' or dynamic dispatch via AnyObject should be able to generate any msgSend you'd need.

        0 replies 0 retweets 0 likes
      3. View other replies
      4. Jaden Geller ‏@JadenGeller May 11

        @jckarter @Tricertops Isn't `performSelector` not available in Swift? I thought it and NSInvocation were marked as unavailable.

        0 replies 0 retweets 0 likes
      5. View other replies
      6. Joe Groff ‏@jckarter May 11

        @JadenGeller @Tricertops performSelector is available now, not sure about NSInvocation.

        0 replies 0 retweets 1 like
      1. Matt ‏@matt_sven May 11

        @jckarter @zedshaw A fetched objects class was MyEntity_MyEntity_, instead of just MyEntity. Ob-C [object class] solved it

        0 replies 0 retweets 1 like
      2. Joe Groff ‏@jckarter May 11

        @matt_sven @zedshaw I think it's intended to be namespaced by the app's module name, but 'Module_Name_' sounds weird. cc @UINT_MIN

        0 replies 0 retweets 0 likes
      3. Jordan Rose ‏@UINT_MIN May 11

        @matt_sven Would definitely like more details here about the non-working code, if there are any to be had. // @jckarter

        0 replies 0 retweets 0 likes
      4. View other replies
      5. Matt ‏@matt_sven May 11

        @UINT_MIN @jckarter [fetchedObject class] returns the right class in Obj-C. Am passing the fetched object to Obj-C and calling -class as fix

        0 replies 0 retweets 1 like
      6. Joe Groff ‏@jckarter May 11

        @matt_sven @UINT_MIN Does fetchedObject.dynamicType produce the right class object in Swift?

        0 replies 0 retweets 0 likes
      7. Matt ‏@matt_sven May 11

        @jckarter @UINT_MIN No :/ I was confused as to why my code wasn't working for quite awhile

        0 replies 0 retweets 0 likes

    Loading seems to be taking a while.

    Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

      Promoted Tweet

      false

      • © 2016 Twitter
      • About
      • Help
      • Terms
      • Privacy
      • Cookies
      • Ads info