• 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
-[NSCalendar firstWeekday] keeps getting overwritten?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSCalendar firstWeekday] keeps getting overwritten?


  • Subject: -[NSCalendar firstWeekday] keeps getting overwritten?
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 9 Nov 2007 19:24:25 -0700

I posted a more generic version of this question to the xcode-users mailing list, but didn't get anywhere...

I'm having a problem that is only occurring in Leopard. I have an object that has an NSCalendar as a property. The calendar is copied (rather than retained) from the sender.

The problem I'm having is its firstWeekday property value is constantly being overwritten in memory from somewhere else, and I am positive that it is not being overwritten by a set method, since neither -setFirstWeekday: or the CF equivalent are being called on the same calendar during the time that the value changes.

Normally I'd set a watchpoint on the memory address to find the culprit, except that CFCalendarRef is an opaque data structure, and even if the Leopard CF source code was available, CFCalendarRef has always been a semi-private part of CF.

So I have two questions:

1. What's going on here? Why is the firstWeekday property being overridden by something on Leopard, but not on Tiger?

2. How do I track down the culprit when I have no idea when I have no idea what memory address the instance variable is using?

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


  • Prev by Date: Re: SenTestingKit fails when using CG-Only
  • Next by Date: [ANN] IB 3.x Plugin sample code available
  • Previous by thread: Re: NSView / Drag and Drop: Any API or constants to detect the start of a drag?
  • Next by thread: [ANN] IB 3.x Plugin sample code available
  • Index(es):
    • Date
    • Thread