cocoa programming help

Feel free to talk about anything and everything in this board.
Post Reply
Slapzy
Ranger
Posts: 1806
Joined: Mon May 05, 2008 3:21 pm
Location: ~root@208.113.172.130# sudo rm -f /

cocoa programming help

Post by Slapzy » Fri Jul 04, 2008 5:47 pm

im trying to write an application, but i keep getting an error at this point in the build. (x = error line)

Code: Select all

{
x   –index;
    if (index < 0) {
         index = [iconImages count] - 1;
    }
    [self displayIconAtIndex:index];        
}
can someone help me find whats wrong here?
Last edited by Slapzy on Fri Jul 04, 2008 5:57 pm, edited 3 times in total.
~ Teh Slapz
Image
TaxiService wrote:OMG BARREL ROLL ON ACIDS
._. \·. |: /.· .-. ·.\ :| .·/ ._. \·. |: /.· .-. ·.\ :| .·/ ._.
WHOOHHAGHGHHGEHGR

P!ckoff
Ranger
Posts: 1768
Joined: Fri Jul 21, 2006 8:45 am
Location: They haven't told me yet.
Contact:

Post by P!ckoff » Fri Jul 04, 2008 5:55 pm

Use:

Code: Select all

 [code]&
[/code]

So the emoticons wont show up.
Image Xpro + 3D texture

Slapzy
Ranger
Posts: 1806
Joined: Mon May 05, 2008 3:21 pm
Location: ~root@208.113.172.130# sudo rm -f /

Post by Slapzy » Fri Jul 04, 2008 5:56 pm

thanks :P i knew that, i just forgot.
~ Teh Slapz
Image
TaxiService wrote:OMG BARREL ROLL ON ACIDS
._. \·. |: /.· .-. ·.\ :| .·/ ._. \·. |: /.· .-. ·.\ :| .·/ ._.
WHOOHHAGHGHHGEHGR

Excend
Commando
Posts: 2791
Joined: Sun May 06, 2007 3:27 am
Location: SiK x Gh0sTs Rehauled.
Contact:

Post by Excend » Fri Jul 04, 2008 6:15 pm

or... you could just disable smilies >.>
TaxiService wrote:Roses are red
Violets are blue
What a shitty thread
Fuck all of you.

P!ckoff
Ranger
Posts: 1768
Joined: Fri Jul 21, 2006 8:45 am
Location: They haven't told me yet.
Contact:

Post by P!ckoff » Fri Jul 04, 2008 8:16 pm

WhatEVER! Sorry, I'm a designer, not a programmer. Want to be, but am not nerdy enough yet. Hope you get some help, and also, there HAS to be a support forum for mac programmers out there...
Image Xpro + 3D texture

Slapzy
Ranger
Posts: 1806
Joined: Mon May 05, 2008 3:21 pm
Location: ~root@208.113.172.130# sudo rm -f /

Post by Slapzy » Fri Jul 04, 2008 9:21 pm

P!ckoff wrote:WhatEVER! Sorry, I'm a designer, not a programmer. Want to be, but am not nerdy enough yet. Hope you get some help, and also, there HAS to be a support forum for mac programmers out there...
same here, trying to be, but just not geeky enough to understand it all :/
~ Teh Slapz
Image
TaxiService wrote:OMG BARREL ROLL ON ACIDS
._. \·. |: /.· .-. ·.\ :| .·/ ._. \·. |: /.· .-. ·.\ :| .·/ ._.
WHOOHHAGHGHHGEHGR

Excend
Commando
Posts: 2791
Joined: Sun May 06, 2007 3:27 am
Location: SiK x Gh0sTs Rehauled.
Contact:

Post by Excend » Sat Jul 05, 2008 6:18 am

i only program with javascript and because my mom makes me O.o... but i get paid for it :D
TaxiService wrote:Roses are red
Violets are blue
What a shitty thread
Fuck all of you.

Dirk Gently
Commando
Posts: 2047
Joined: Sun Oct 21, 2007 2:34 pm
Location: 3C0E9056
Contact:

Post by Dirk Gently » Sat Jul 05, 2008 7:15 am

can you explain what you are trying to do exactly?

Excend
Commando
Posts: 2791
Joined: Sun May 06, 2007 3:27 am
Location: SiK x Gh0sTs Rehauled.
Contact:

Post by Excend » Sat Jul 05, 2008 7:39 am

it looks like he is trying to make an icon appear O.o
TaxiService wrote:Roses are red
Violets are blue
What a shitty thread
Fuck all of you.

nil
Halo Moderator
Halo Moderator
Posts: 1090
Joined: Sat Jul 05, 2008 8:38 am
Location: null zone

Re: cocoa programming help

Post by nil » Sat Jul 05, 2008 8:41 am

Slappey wrote:im trying to write an application, but i keep getting an error at this point in the build. (x = error line)

Code: Select all

{
x   –index;
    if (index < 0) {
         index = [iconImages count] - 1;
    }
    [self displayIconAtIndex:index];        
}
can someone help me find whats wrong here?
Generally, when asking people for help to see what's wrong, you want to tell us the exact error message it spits out.

If you haven't figured it out yet, it's a syntax error at line x. You probably meant:

Code: Select all

--index;

Slapzy
Ranger
Posts: 1806
Joined: Mon May 05, 2008 3:21 pm
Location: ~root@208.113.172.130# sudo rm -f /

Post by Slapzy » Sat Jul 05, 2008 1:16 pm

i fixed it, thanks, and yeah it was

Code: Select all

--index;
~ Teh Slapz
Image
TaxiService wrote:OMG BARREL ROLL ON ACIDS
._. \·. |: /.· .-. ·.\ :| .·/ ._. \·. |: /.· .-. ·.\ :| .·/ ._.
WHOOHHAGHGHHGEHGR

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests