• 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
What difference exist from where a method will be called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What difference exist from where a method will be called?


  • Subject: What difference exist from where a method will be called?
  • From: Raimond Hettrich <email@hidden>
  • Date: Wed, 07 Sep 2016 22:18:36 +0200

Dear all,

there is a thing i can’t understand.

In my class I have an NSMutableArray as a instance variable and a property. With the init method the array will be created with alloc / init. When my tableView has rows an information for each row will be added as object to my array. Then I have a method that is just printing out the array. Now when this method will be called by a button press the array will be printed out correctly.

2016-09-07 22:12:47.115 Yoga[7972:3973573] customViewArray (drawStroke) (
    1,
    3
)

But if the method will be called from the drawRect method, the array will be printed out without the contend.

2016-09-07 22:12:17.511 Yoga[7972:3973573] customViewArray (drawStroke) (
)

I can’t understand that it could make a difference to a methods contend from where the method will be called.

I thank You for helping to understand this.

Thanx,
Raimond
_______________________________________________

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


  • Follow-Ups:
    • Re: What difference exist from where a method will be called?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Mixing Swift and Objective-C protocols
  • Next by Date: Re: How to silently use Proxy authentication credentials from Keychain, like Safari, Mail, etc.
  • Previous by thread: Re: C callbacks with NSNotificationCenter?
  • Next by thread: Re: What difference exist from where a method will be called?
  • Index(es):
    • Date
    • Thread