On 04.09.2012, at 07:52, Graham Cox wrote:
>
> On 04/09/2012, at 3:24 PM, Gerriet M. Denkmann wrote:
>
>> I have a class with a mutable array. But from outside it should be just a
>> read-only non-mutable array.
>> Is there a better (more elegant) way?
>
> Just return the internal (mutable)
On 5 Sep 2012, at 00:13, Graham Cox wrote:
> Just a follow up on the thread that shall not speak its name.
>
> Sandboxing makes integration of media files from other apps (e.g. iPhoto)
> somewhat difficult. By using temporary entitlements, these features can be
> made to work with iPhoto. How
What is the best the data source for a table view in a document window? The
candidates are…
(1) Category of the document. This is the way it is done in the
WithoutBindings ("With and Without Bindings") Apple sample code. But it seems
like too much "view-ish" code in the data model, particul
I use a standalone singleton object in Matt Galloway style. Never ran into the
crash you're mentioning.
On Sep 5, 2012, at 8:39 AM, Jerry Krinock wrote:
> What is the best the data source for a table view in a document window? The
> candidates are…
>
> (1) Category of the document. This is
If the table view's data is related to the document, you should keep this
in the document. Putting it in a category when the class is fully under
your control seems a bit odd, but you may have a reason for that. You
should look at your reservations, though. You're wanting to hook up a
"data sour
On Sep 5, 2012, at 5:39 AM, Jerry Krinock wrote:
> What is the best the data source for a table view in a document window? The
> candidates are…
>
> (1) Category of the document. This is the way it is done in the
> WithoutBindings ("With and Without Bindings") Apple sample code. But it
>
>
>
>
>>
>> (2) Separate, standalone object. Fancy housekeeping is needed to avoid
>> retain cycles, and crashes in corner cases as the document window is closing.
>
> Quite common. This kind of life cycle management is part of living with Cocoa.
>
> Consider making this object an NSViewCo
I have an NSButton in a control panel with an action bound via an
arrayController. I can send an action no problem. The question is how to
get the ³sender² (i.e., the button) parameter included. I can¹t figure out
how to do this with the argument binding (in IB). I need the sender for
launchin
Graham,
I reconfigured my code to load the cached copy of the user-selected movie with
the QTMovieResolveDataRefsAttribute set to "NO.
I don't get any new/additional messages sent to the console. In your
experience, is this an indication that i am *not* writing to the source QT file
(via some
On Sep 5, 2012, at 5:39 AM, Jerry Krinock wrote:
> … except that my window controller for this multi-tabbed window is already
> huge.
In a complex window where there a multiple tabbed views like you have, think of
the window controller as doing nothing more than managing the view controllers
f
On Sep 5, 2012, at 5:39 AM, Jerry Krinock wrote:
> (2) Separate, standalone object. Fancy housekeeping is needed to avoid
> retain cycles, and crashes in corner cases as the document window is closing.
This is the way to go. That housekeeping doesn’t need to be so fancy; you just
need to est
On Sep 5, 2012, at 11:53 AM, Seth Willits wrote:
> In a complex window where there a multiple tabbed views like you have, think
> of the window controller as doing nothing more than managing the view
> controllers for each of the tabs, not the actual views in each tab. If your
> window control
On Sep 5, 2012, at 11:24 AM, Kyle Sluder wrote:
> On Sep 5, 2012, at 5:39 AM, Jerry Krinock wrote:
>
>> What is the best the data source for a table view in a document window? The
>> candidates are…
>>
>> (1) Category of the document. This is the way it is done in the
>> WithoutBindings ("
I am getting the following message: CoreAnimation: warning, deleted thread
with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to
log backtraces.
What in general would be causing this?
How do I set CA_DEBUG_TRANSACTIONS=1?
Best regards,
John MacMullin
On Wed, Sep 5, 2012, at 03:35 PM, John MacMullin wrote:
> I am getting the following message: CoreAnimation: warning, deleted
> thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in
> environment to log backtraces.
>
> What in general would be causing this?
In general, it would b
On 06/09/2012, at 4:51 AM, douglas welton wrote:
> I reconfigured my code to load the cached copy of the user-selected movie
> with the QTMovieResolveDataRefsAttribute set to "NO.
>
> I don't get any new/additional messages sent to the console. In your
> experience, is this an indication tha
Ok, I went to the scheme in Xcode and added the variable. Running again
produced the following backtrace.
0 QuartzCore 0x7fff8a736b95
_ZN2CA11Transaction4pushEv + 219
1 QuartzCore 0x7fff8a73676d
_ZN2CA11Transaction15ensure_implicitE
On 05/09/2012, at 7:08 PM, Mike Abdullah wrote:
>
> On 5 Sep 2012, at 00:13, Graham Cox wrote:
>
>> Just a follow up on the thread that shall not speak its name.
>>
>> Sandboxing makes integration of media files from other apps (e.g. iPhoto)
>> somewhat difficult. By using temporary entitle
On Sep 5, 2012, at 4:12 PM, John MacMullin wrote:
> Ok, I went to the scheme in Xcode and added the variable. Running again
> produced the following backtrace.
>
> 0 QuartzCore 0x7fff8a736b95
> _ZN2CA11Transaction4pushEv + 219
> 1 QuartzCore
One idea would be to keep a copy of the icons in your bundle, but allow it to
update from a server newer icons. That way a new user with no network
connection would get a specific version of the icons, but if there was an
iPhoto update you could update your icons and throughout the week the app
On Wed, Sep 5, 2012 at 1:51 PM, douglas welton
wrote:
> I reconfigured my code to load the cached copy of the user-selected movie
> with the QTMovieResolveDataRefsAttribute set to "NO.
>
> I don't get any new/additional messages sent to the console. In your
> experience, is this an indication t
On 06/09/2012, at 9:26 AM, Alex Kac wrote:
> One idea would be to keep a copy of the icons in your bundle, but allow it to
> update from a server newer icons. That way a new user with no network
> connection would get a specific version of the icons, but if there was an
> iPhoto update you co
Ok, that was it. I loaded [NSBundle loadNibNamed:XXX] in a background thread.
Fixing that problem resolved the message.
Thanks.
On Sep 5, 2012, at 4:13 PM, Kyle Sluder wrote:
> On Sep 5, 2012, at 4:12 PM, John MacMullin wrote:
>
>> Ok, I went to the scheme in Xcode and added the variable. Ru
I'm still digesting all the fine advice in this thread. But since it seems
like I'm going to keep my standalone data source in some form, here is a quick
answer to Martin's question regarding crashes.
On 2012 Sep 05, at 10:16, Martin Hewitson wrote:
> occasional crashes that occur when the p
On Sep 5, 2012, at 4:56 PM, Graham Cox wrote:
>
> On 06/09/2012, at 9:26 AM, Alex Kac wrote:
>
>> One idea would be to keep a copy of the icons in your bundle, but allow it
>> to update from a server newer icons. That way a new user with no network
>> connection would get a specific version
On Sep 5, 2012, at 5:13 PM, John MacMullin wrote:
> Ok, that was it. I loaded [NSBundle loadNibNamed:XXX] in a background thread.
>
> Fixing that problem resolved the message.
Did the process of fixing it also illuminate other areas you seem to be hazy
on, such as how Core Animation works, wh
On 06/09/2012, at 10:46 AM, Kyle Sluder wrote:
> And extracting the iPhoto icons and uploading them to your own server is an
> immediate no-go; that's almost certainly a copyright violation.
Definitely - that's why we've drawn our own icons that only approximate
iPhoto's.
> Agreed, but in t
Hello, is there a recomendation of a better list for this question ?
- Original Message -
From: "danchik"
To:
Sent: Thursday, August 02, 2012 3:33 PM
Subject: NSData DataWithContentsOfURL within a protocol handler
Hello, I was callingNSData *data = [NSData DataWithContentsOfURL:url.
On 06/09/2012, at 10:44 AM, Jerry Krinock wrote:
> Regarding the indication, I've yet to find a single hook in Cocoa which gives
> me a reliable early warning that a document is closing.
If your document only has a single window, you could use:
- (void) windowWillClose:(NSNotification*) not
Thanks for the advice, gentlemen.
I already had a -cleanUp method being called from -windowWillClose: within the
NSDocument (NSPersistentDocument, actually), so I looked more carefully at how
that particular view controller is torn down. I made some changes such that
now, in the document's clea
On Sep 5, 2012, at 17:55, Graham Cox wrote:
>
> On 06/09/2012, at 10:46 AM, Kyle Sluder wrote:
>
>> And extracting the iPhoto icons and uploading them to your own server is an
>> immediate no-go; that's almost certainly a copyright violation.
>
>
> Definitely - that's why we've drawn our o
31 matches
Mail list logo