Results 1 to 9 of 9

Thread: Equivalent of NSData

  1. #1
    Join Date
    Feb 2013
    Posts
    50
    Thanks
    5

    Default Equivalent of NSData

    Hello,

    I was wondering if there was an equivalent to NSData (https://developer.apple.com/library/...Reference.html) in Qt?? If yes, what?? Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Equivalent of NSData

    Hi,

    Have you readed any Qt doc?
    You are asking all the time to any equivalent apple SDK class to a Qt class.
    Take a quick look on Qt classes and if you find some class that maybe is what you need, read it's documentation. Then if you don't understand how it works or you have some problem we can help you.
    Òscar Llarch i Galán

  3. #3
    Join Date
    Feb 2013
    Posts
    50
    Thanks
    5

    Default Re: Equivalent of NSData

    Quote Originally Posted by ^NyAw^ View Post
    Hi,

    Have you readed any Qt doc?
    You are asking all the time to any equivalent apple SDK class to a Qt class.
    Take a quick look on Qt classes and if you find some class that maybe is what you need, read it's documentation. Then if you don't understand how it works or you have some problem we can help you.
    Well this time I was searching for it also on the internet... since I didn't find anything, that is why I came here... I will continue my search...

    ps. I think this seems close to it?? QByteArray ??
    Last edited by ggdev001; 1st March 2013 at 10:55.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Equivalent of NSData

    What a nice approach... instead of you searching how to convert one type that you know into another type that you don't know, you ask us to search how to convert one type we don't know into another type that we know.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Feb 2013
    Posts
    50
    Thanks
    5

    Default Re: Equivalent of NSData

    Quote Originally Posted by wysota View Post
    What a nice approach... instead of you searching how to convert one type that you know into another type that you don't know, you ask us to search how to convert one type we don't know into another type that we know.
    No, I thought maybe you knew better - because actually I didn't even quite get very well what NSData was like (as a structure)... anyway I think QByteArray seems close it..

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Equivalent of NSData

    We're not omnipotent, it's a Qt forum, not an iOS forum. We solve Qt issues, not iOS issues. If you ask "what is a Qt class for storing a sequence of bytes" then we will answer. If you ask "hey I've been using XYZ in ABC technology, what is its equivalent in Qt" then you ask us to search for ABC and XYZ and read its docs (provided there are docs at all) long enough to understand what XYZ does and only then think about a Qt alternative. People don't really want to do that.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Feb 2013
    Posts
    50
    Thanks
    5

    Default Re: Equivalent of NSData

    Quote Originally Posted by wysota View Post
    then you ask us to search for ABC and XYZ and read its docs (provided there are docs at all) long enough to understand what XYZ does and only then think about a Qt alternative. People don't really want to do that.
    In this case of course I assumed a person who would answer here already knew what NSData was.

  8. #8
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Equivalent of NSData

    Most probably you need QByteArray

  9. #9
    Join Date
    Feb 2013
    Posts
    50
    Thanks
    5

    Default Re: Equivalent of NSData

    Quote Originally Posted by MarekR22 View Post
    Most probably you need QByteArray
    Yes, I also have the same opinion now that I looked at docs of both classes.. thanks anyway

Similar Threads

  1. QSettings equivalent in QML?
    By Koying in forum Qt Quick
    Replies: 3
    Last Post: 15th August 2012, 03:25
  2. cin Equivalent in Qt
    By amiref in forum Qt Programming
    Replies: 1
    Last Post: 27th March 2011, 18:16
  3. About STL containers and QT equivalent
    By tonnot in forum Qt Programming
    Replies: 7
    Last Post: 11th February 2011, 14:17
  4. Qt equivalent of .Xdefaults?
    By kevinm in forum Newbie
    Replies: 2
    Last Post: 17th October 2008, 22:44
  5. equivalent
    By deepa.selvaraj in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 18:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.