Re: Tracking the retain count

2015-05-18 Thread Quincey Morris
Let me try and summarize where we are, in response to the several recent suggestions: Britt has an app with an existing, fully functional custom cache of objects that have a UUID property, with the restriction that UUIDs are unique amongst objects in the cache. Objects may be created in various

Re: Tracking the retain count

2015-05-18 Thread dangerwillrobinsondanger
I'm going to butt in here and say that if you've got so many objects that it is causing memory pressure, you really just need to reevaluate and blow up your model. Consider using a database or Core Data. Tracking and storing large relational sets of data is exactly what those things do well.

Re: Tracking the retain count

2015-05-18 Thread Roland King
> On 18 May 2015, at 14:59, Britt Durbrow > wrote: > > Unfortunately I don’t think NSCache will work for me in this situation. > > The objects in the pool have a UUID that is used to maintain the graph > structure’s coherency when it’s partially or entirely on disk. In RAM, there > can be on

Re: Tracking the retain count

2015-05-18 Thread Graham Cox
I don’t wish to butt in, since you seem to be doing fine and I probably don’t have too much to contribute, but just pointing you at NSDiscardableContent for a second, that has a “pseudo-retain count” type of mechanism that is independent of the actual retain count. I wonder if that couldn’t hel

Re: Tracking the retain count

2015-05-18 Thread Quincey Morris
On May 18, 2015, at 16:25 , Britt Durbrow wrote: > > If some objects are in autorelease pools, that means that there is a strong > link to them out there somewhere (presumably on the stack or in a register > where it’s going to go away once the stack frames get popped) and the object > pool c

Re: Tracking the retain count

2015-05-18 Thread Britt Durbrow
> > On May 18, 2015, at 11:38 AM, Quincey Morris > wrote: > > On May 18, 2015, at 10:52 , Britt Durbrow > wrote: >> >> Is the reasoning that: >> >> 1: Not under ARC; >> 2: There is one known strong link to an object; >> 3: retainCount returned 1 >> >> Therefore, the only strong link to the

Re: Date Picker

2015-05-18 Thread Rick Aurbach
David, I’m sorry, but I really don’t understand your question. I’ve been putting date pickers into popovers on iPad since iOS 5. Haven’t looked lately; has something changed? Could you provide more information? Like, what are you trying to do? Why don’t you think a data picker can go into a po

Re: Date Picker

2015-05-18 Thread Juan Felipe Alvarez Saldarriaga
Take a look at this: https://github.com/skywinder/ActionSheetPicker-3.0 Sent from my iPhone > On May 18, 2015, at 1:11 PM, David Grant wrote: > > Is there really no way to display a date picker in a pop over view like a > keyboard? > ___ > > Cocoa-d

Re: Tracking the retain count

2015-05-18 Thread Quincey Morris
On May 18, 2015, at 10:52 , Britt Durbrow wrote: > > Is the reasoning that: > > 1: Not under ARC; > 2: There is one known strong link to an object; > 3: retainCount returned 1 > > Therefore, the only strong link to the object is the known strong link > specified in item 2. > > … is that not

Re: Tracking the retain count

2015-05-18 Thread Ken Thomases
On May 18, 2015, at 12:52 PM, Britt Durbrow wrote: > In order to maintain graph coherency the object pool controller must ensure > that there is only ever one object in memory with a particular UUID. > Consequently, I can’t just have the object pool controller release the > objects without as

Date Picker

2015-05-18 Thread David Grant
Is there really no way to display a date picker in a pop over view like a keyboard? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(a

Re: Tracking the retain count

2015-05-18 Thread Britt Durbrow
> On May 18, 2015, at 1:11 AM, Quincey Morris > wrote: > > On May 17, 2015, at 23:59 , Britt Durbrow > wrote: >> >> My understanding of retainCount is that it’s basically considered “taboo” >> because trying to use it without knowing exactly what you are doing tends to >> lead to pitfalls,

Re: How to draw a NSView on top of a WebView and don't get overriden trying

2015-05-18 Thread Juanjo Conti
This worked just great! On Sat, May 16, 2015 at 12:59 PM, Uli Kusterer wrote: > Create a borderless window with your message in it, place it above your > web view. Since a screen saver doesn’t move, you could probably leave it at > that and not even use a child window? > > > On 16 May 2015, at 1

Re: Tracking the retain count

2015-05-18 Thread Quincey Morris
On May 17, 2015, at 23:59 , Britt Durbrow wrote: > > My understanding of retainCount is that it’s basically considered “taboo” > because trying to use it without knowing exactly what you are doing tends to > lead to pitfalls, and most people looking at it tend to think it means > something th

Re: Tracking the retain count

2015-05-18 Thread Britt Durbrow
Unfortunately I don’t think NSCache will work for me in this situation. The objects in the pool have a UUID that is used to maintain the graph structure’s coherency when it’s partially or entirely on disk. In RAM, there can be only one object per UUID; but if something points to an object that t