SegFaulty's Profile User Rating: -----

Reputation: 14 Tradesman
Active Posts:
35 (0.02 per day)
11-October 10
Profile Views:
Last Active:
User is offline Apr 14 2014 08:36 AM

Previous Fields

OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
Icon   SegFaulty has not set their status

Posts I've Made

  1. In Topic: (Noob) Problem with Deck of Cards Class

    Posted 16 Aug 2013

    My guess is because you are not initializing the array that holds the deck. Try creating your init method:

    - (id)init{
        deck = [[NSMutableArray alloc] init];

    That should fix it.
  2. In Topic: Confusion with Calling Methods in Objective C

    Posted 16 Aug 2013

    In the second line, you rarely if ever use:

    [[NSString alloc] init];

    Usually if you are using alloc/init with an NSString you'd be using a method such as:

    [[NSString alloc] initWithFormat: @"%d", someNumber];

    So you're currently just initializing to whatever the general initial value is.

    If the syntax itself is confusing you, Objective-C uses a syntax that combines C with SmallTalk. The object-based model used in these two languages uses a concept of message sends instead of methods. Within each set of [] is a message send. So

    [NSString alloc];

    actually sends the message alloc to NSString and returns whatever value that would be. The line

    [[NSString alloc] init];

    first calls this alloc method and takes the return value and sends the message init to it.

    Hope that clarifies a few things for you!
  3. In Topic: A Basic PyQt Tutorial (Notepad)

    Posted 31 Jul 2013

    You know, that seems to be a better solution.
  4. In Topic: A Basic PyQt Tutorial (Notepad)

    Posted 31 Jul 2013

    Huh, that's interesting. When I wrote the tutorial I had read that HOME should work just fine on Windows as well, but I didn't have a Windows environment to test it in, to be perfectly honest. I was running in Linux.... I'll have to do some research and update the tutorial if possible, thanks for pointing that out!

My Information

Member Title:
New D.I.C Head
Age Unknown
Birthday Unknown
Programming Languages:
Java, C++

Contact Information



SegFaulty hasn't added any friends yet.


SegFaulty has no profile comments yet. Why not say hello?