Views & Staying On Top / Accessing Across Apps

2012-05-18 Thread Jason Teagle
I've been rooting through documentation as part of learning how to program for OS X, but I still have much to get used to. Out of interest, do NSView or any other class that would be considered 'visual' support any kind of stay-on-top semantics (or slightly less specifically, stay-in-front-of-

Re: Views-based table drag and drop

2012-05-18 Thread Raleigh Ledet
You can put whatever data you want/need in the pasteboard item. Even multiple independent things. A handy trick is often to add a private type per item. This custom type can be as simple as the index of the item in the source list. > So obviously I need to use tableView:pasteboardWriterForRow:.

Re: NSScroller in layer backed view

2012-05-18 Thread Raleigh Ledet
Do not override drawRect:! Override the parts drawing methods: – drawKnobSlotInRect:highlight: – drawKnob https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSScroller_Class/Reference/Reference.html -raleigh On Apr 3, 2012, at 12:47 AM, Ryan Joseph w

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread Patrick Robertson
Thanks all, you've saved me a fair bit of time having to experiment/research this further. Just to clarify - none of the bundles (or the app) are using GC so it'll be an ARC app loading manual RR code. David - always worth pointing out the memory management conventions, it'll be something I have t

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread David Duncan
On May 18, 2012, at 7:39 AM, Patrick Robertson wrote: > I'm (finally) looking at converting my non-ARC (Mac OS X) app over to ARC, > but also have quite a few external plugins/bundles which can be loaded into > the main app on runtime. > My question is - can my ARC app load non-ARC bundles, or is

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread Scott Ribe
On May 18, 2012, at 8:49 AM, Fritz Anderson wrote: > Yes, it can link to (including loading) non-ARC code. By which I assume you mean old-style retain/release code, not GC? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice __

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread Marcus Straßmann
Did that once with the SVProgressHUD by Sven Vermette, which is non-ARC as well. If you add "-fno-objc-arc" in Build Phases / Compile Sources / Compiler Flags, it should work. HTH Marcus Am 18.05.2012 um 16:39 schrieb Patrick Robertson: > Hi all, > > I'm (finally) looking at converting my no

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread Fritz Anderson
On 18 May 2012, at 9:39 AM, Patrick Robertson wrote: > My question is - can my ARC app load non-ARC bundles, or is this not > possible. Yes, it can link to (including loading) non-ARC code. — F ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

ARC apps - loading non-ARC bundles

2012-05-18 Thread Patrick Robertson
Hi all, I'm (finally) looking at converting my non-ARC (Mac OS X) app over to ARC, but also have quite a few external plugins/bundles which can be loaded into the main app on runtime. My question is - can my ARC app load non-ARC bundles, or is this not possible. My guess is that it's the similar