• 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.
gparker's profile
Greg Parker
Greg Parker
Greg Parker
@gparker

Greg Parker

@gparker

Swift and Objective-C Runtime Wrangler

Joined September 2008
  • © 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
    Greg Parker ‏@gparker 11 Sep 2013

    %zd, %tu, %tx (signed, unsigned, hex) currently format NSInteger and NSUInteger with no warnings.

    • Retweets 80
    • Likes 193
    • iKyle Max Hager Hu Patrick Burleson Ben Stovold Jon Buffington Paul Young Alex Stevenson-Price Ernesto García
    2:44 PM - 11 Sep 2013
    0 replies 80 retweets 193 likes
      1. zachary  ✌ ‏@zadr 11 Sep 2013

        @gparker The word "currently" has me worried, but, thats awesome.

        0 replies 0 retweets 2 likes
      2. Vincent Gable ‏@VTPG 11 Sep 2013 Cupertino, CA

        @zadr @gparker I remember %z warning under -Weverything a few months ago, what changed?

        0 replies 0 retweets 0 likes
      3. Greg Parker ‏@gparker 11 Sep 2013

        @VTPG @zadr In my tests %zu warned but %zd did not.

        0 replies 0 retweets 0 likes
      1. Kevin Ballard ‏@eridius 11 Sep 2013 Mission Bay, San Francisco

        @gparker @kongtomorrow Where are those documented? Last I checked the Apple docs say cast to long.

        0 replies 0 retweets 1 like
      2. View other replies
      3. Petrifying Horror ‏@boredzo 11 Sep 2013

        @eridius @gparker @kongtomorrow https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html … But, as @kongtomorrow says, no explicit mention of NSU?Integer.

        0 replies 0 retweets 0 likes
      4. Greg Parker ‏@gparker 11 Sep 2013

        @boredzo @eridius @kongtomorrow NS[U]Integer happen to be the "corresponding [un]signed integer type" on all four OSX and iOS architectures.

        0 replies 0 retweets 0 likes
      5. Andy Lee ‏@cocoadog 11 Sep 2013

        @gparker @boredzo @eridius @kongtomorrow Thanks. I'd been casting to long too.

        0 replies 0 retweets 0 likes
      1. Yaakov ‏@yaakov_h 11 Sep 2013

        @gparker what are the z and t modifiers?

        0 replies 0 retweets 0 likes
      2.  🐯 🐛 🐓 ‏@stephentyrone 11 Sep 2013

        @yaakov_h @gparker z is the modifier for "size_t", t is for "ptrdiff_t".

        0 replies 0 retweets 1 like
      3. Yaakov ‏@yaakov_h 11 Sep 2013

        @stephentyrone @gparker ah, so it'll only work as long as NS?Integer aligns with those types then. I wonder if that would ever change.

        0 replies 0 retweets 0 likes
    1. Petrifying Horror ‏@boredzo 11 Sep 2013

      @gparker Hadn’t occurred to me to use the ptrdiff_t sizes for that. Thanks.

      0 replies 0 retweets 1 like
    2. Jeff Kelley ‏@SlaunchaMan 11 Sep 2013 Macomb, MI

      @gparker I can’t wait to see how many people hardcoded, say, struct sizes instead of using sizeof() or offsetof().

      0 replies 0 retweets 1 like
    3. Seth Willits ‏@sethwillits 26 Sep 2013

      @gparker @drance Sure would be a lot simpler to remember if it was %nsu and %nsi !

      0 replies 0 retweets 0 likes
    4. Filipe Cabecinhas ‏@filcab 11 Sep 2013

      @gparker Is there a rule somewhere about what modifiers to use? Or should we assume sizeof(size_t)==sizeof(ptrdiff_t)==sizeof(NSInteger)?

      0 replies 0 retweets 0 likes
    5. Jonathan Grynspan ‏@grynspan 11 Sep 2013

      @gparker The first one is for ssize_t. Did you mean %td?

      0 replies 0 retweets 0 likes
    6. iOSDev ‏@macrotech 8 Oct 2014

      @gparker Nahhh, just cast to unsigned long, much better practice

      0 replies 0 retweets 0 likes
    7. Eshwar Ramesh ‏@eshwar_ramesh 19 Mar 2014

      “@gparker: %zd, %tu, %tx (signed, unsigned, hex) currently format NSInteger and NSUInteger with no warnings.” Well, that's interesting.

      0 replies 0 retweets 0 likes
    8. Chaitanya Gupta ‏@chaitanya_gupta 5 Mar 2014

      Useful for 64-bit switch RT @gparker %zd, %tu, %tx (signed, unsigned, hex) currently format NSInteger and NSUInteger with no warnings #objc

      0 replies 0 retweets 0 likes
    9. Dan Anderson ‏@SimplyImagined 26 Sep 2013

      @drance @gparker Those are ugly but exactly what I was looking for.

      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