• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hii I have problem in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hii I have problem in


  • Subject: Re: Hii I have problem in
  • From: "Vijay Malhan" <email@hidden>
  • Date: Fri, 30 May 2008 16:59:26 +0530

On Fri, May 30, 2008 at 1:26 PM, haresh vavdiya <
email@hidden> wrote:

> Ya but i have retained my stringRes instance variable but i can't
> understand
> what is problem


We can't see that in your code.
Use: self.stringRes = txtResult.text;
and declare a retain-property for your string ivar. or
use the standard objC setter/getter pattern for an ivar - if you are on
Tiger.
I think this is what Andrew meant.

Thanks.





>
>
> On Fri, May 30, 2008 at 10:00 AM, Andrew Farmer <email@hidden> wrote:
>
> > On 29 May 08, at 21:13, haresh vavdiya wrote:
> >
> >> I m doing tic tac toc game and i have completed most of the parts.
> >> But only remaining portion is disable button when player won the
> >> game.
> >> I have set like [button1 setEnabled:FALSE];  and its working but
> >> erase all press button.
> >>
> >> Means whenever player wins the game then remaining buttons have to
> >> disable and i have done but Erased all the title of button whichever
> >> player
> >> have pressed so i can't understand what is problem.   and another
> problem
> >> is
> >>
> >
> > And I can't understand what your problem is either. You'll need to
> explain
> > yourself more clearly.
> >
> > Also, please use a more specific subject line in the future. "Hii I have
> > problem in" doesn't even come close to describing the contents of your
> > question.
> >
> >  This is code of calculator in i.....
> >>
> >
> > I'll pretend I didn't hear that. (Read your NDA.)
> >
> >  but its working with 2-digit
> >> number but whenever i enter  3 -digit number its not working i can't
> >> understand what is problem
> >>
> >>            -(IBAction)push_plus
> >>             {
> >>             stringRes = txtResult.text;
> >>
> >
> > Assuming that stringRes is an instance variable, you aren't retaining it.
> > Read up on memory management rules - the fact that this works with 1- and
> > 2-digit numbers is a fluke.
> >
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Hii I have problem in (From: "haresh vavdiya" <email@hidden>)
 >Re: Hii I have problem in (From: Andrew Farmer <email@hidden>)
 >Re: Hii I have problem in (From: "haresh vavdiya" <email@hidden>)

  • Prev by Date: NSTextView and changing the selected text's color
  • Next by Date: Re: sorting an NSTableView
  • Previous by thread: Re: Hii I have problem in
  • Next by thread: Another newbie question
  • Index(es):
    • Date
    • Thread