When an NSTableView is set up with bindings and NSArrayController,
what is the right way to modify a row? I see NSArrayController
methods to add and remove objects, but nothing to modify one. I guess
I could remove and then add, but that seems ugly.
Before I started with bindings, it
I have a MBP17 and a 23 Cinema. The Cinema is the main display.
I am using:
void DisplayReconfigurationCallBack (CGDirectDisplayID display,
CGDisplayChangeSummaryFlags flags, void *userInfo)
When I remove the Cinema I get:
KCGDisplayRemoveFlag
kCGDisplaySetMainFlag // main is now set to the
On Jul 30, 2008, at 9:31 PM, Bill Bumgarner wrote:
In a Cocoa document based application, how do you stop it from
initially opening an empty document on start up?
(I'm using a core data application if it matters).
Implement...
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication
Hi everyone,
Aachen CocoaHeads is today (31 July 08) at 7PM.
Talk: Amin Negm-Awad, Advanced Cocoa Bindings
Please visit http://www.cocoaheads.de/ for location information.
See you there!
Stefan
smime.p7s
Description: S/MIME cryptographic signature
On Jul 31, 2008, at 3:18 AM, Seth Willits wrote:
Now if only Interface Builder would do the same, and stop showing
the template chooser window every time It drives me *insane*
--
Seth Willits
It may be just as troublesome, but if you set the Restore open
documents preference it
are you familiar with the term conflict of interest?
On Jul 30, 2008, at 11:18 PM, CocoaDev Admins wrote:
this type of comment isn't productive or appropriate for the list.
scott [moderator]
On 30-Jul-08, at 8:06 PM, Matt Burnett wrote:
The OP needs to get off his high horse and come to
On Jul 30, 2008, at 10:20 PM, Andrew Merenbach wrote:
On Jul 30, 2008, at 8:24 PM, Chris Suter wrote:
On Thu, Jul 31, 2008 at 1:00 PM, Matt Burnett [EMAIL PROTECTED]
wrote:
Then shouldn't you be able to determine if they are using a
hackintosh by
the descriptions of support requests
I looked at the list of mailing lists and none of them seemed
appropriate, so if someone can point me to a better resource, many
thanks. I'll include the problem, in case anyone knows that's going on.
I've had a similar problem to this in the past, with a different
computer, product and
back in the old days of the Apple ][, apps used to be able to check
the ROMS, specifically the bit that displayed Apple ][ on startup
as the clones would normally have something different there to avoid
copyright theft being added to their list of crimes. I believe
Nintendo still do
On Thu, Jul 31, 2008 at 9:50 AM, Dale Jensen [EMAIL PROTECTED] wrote:
I looked at the list of mailing lists and none of them seemed appropriate,
so if someone can point me to a better resource, many thanks. I'll include
the problem, in case anyone knows that's going on.
Your suspicions are
Hi,
Thanks to both you for your help. I see my concern was unnecessary,
as I am indeed using separate file descriptors for the threads.
Thanks!
~ Roger
On Thu, Jul 31, 2008 at 1:47 PM, Jens Alfke [EMAIL PROTECTED] wrote:
On 29 Jul '08, at 11:06 PM, Roger Herikstad wrote:
I have a cocoa
Hi Chris,
On Tue, Jul 29, 2008 at 3:33 AM, Chris Suter [EMAIL PROTECTED] wrote:
It sounds to me like you've got some kind of timing issue and that the delay
that you're adding is merely hiding the true cause of the problem. Are you
able to post a simple test case that displays the problem or
Am Mi,30.07.2008 um 22:36 schrieb Pete Callaway:
Hi,
This is probably a simple question, but I'm having a spot of bother
with a bound NSTextView.
In IB I've set the text view's attributedString to be bound to the
file's owner with a model key path of
document.selectedPage.stringContent.
I
Am Do,31.07.2008 um 07:08 schrieb vince:
thanks,
I have a tableView with two columns. Column one lists arbitrary input
numbers. Column two lists monetary (dollar) vales. I want to display
the
total running sum of column one in a textField and the dynamic (total)
monetary value of column two
7/30/08 6:33 PM, also sprach [EMAIL PROTECTED]:
I've got an NSArrayController that I'd like to use to populate an
NSMenu for use in an NSStatusItem. Is there a way to do this with
bindings?
No, or not that I am aware of. The list of classes and their bindings are
found at
On 7/30/08 12:52 PM, Corbin Dunn said:
I'm trying to use it exactly as used in the
DragNDropOutlineView example: to use a cell that will be used for the
entire row (ie a full width cell).
It works in the test app (which doesn't use bindings), but doesn't
work
in my app that uses bindings.
On Thu, Jul 31, 2008 at 2:26 AM, Negm-Awad Amin [EMAIL PROTECTED] wrote:
I've checked changes to selectedPage can be observed OK so I'm not
sure what I'm missing from the equation. Any tips?
I think, that your solution should work. I do not know, why it doesn't.
This is because Pete hasn't
7/31/08 1:00 AM, also sprach [EMAIL PROTECTED]:
When an NSTableView is set up with bindings and NSArrayController,
what is the right way to modify a row? I see NSArrayController
methods to add and remove objects, but nothing to modify one. I guess
I could remove and then add, but that seems
On Jul 31, 2008, at 8:21 AM, Keary Suska wrote:
If [[ arrayController arrangedObjects] objectAtIndex: i ] I
returning an
immutable object, it's because that is what you are putting into
arrayController 's content array. Use mutable dictionaries instead.
I was mistaken, it is mutable. I
I'm trying to figure out why a particular undo isn't working and I'm
wondering whether there's any way of viewing the method and object
registered with the most recent undo. I think I know why my undo isn't
working, in this particular case, but I'd like to see exactly what the
undoManager
Thanks Graham.
I'm beginning to wonder if this will work at all? It just occurred to
me that every time I click a popup-type link in my webView, that popup
is itself a new instance of MyDocument. I don't see how I could add
that popup window as a child of the main window when they are separate
Thanks Jens.
I'll change that config. I did see the warning, but figured I would
run it anyway.
In a document-based app created using the Xcode template, there is in
fact a window outlet on File's Owner, which in this case is of class
MyDocument. What does that window outlet actually
On Thu, Jul 31, 2008 at 12:52 PM, James Maxwell
[EMAIL PROTECTED] wrote:
AFAIK there's no way to print the whole undo stack, but can I just see the
top?
There's no public API for directly accessing the stacks (undo and
redo), however you could do the following:
1 - Subclass NSUndoManager.
2
I am subclassing CALayer, and overriding -drawInContext: to perform my
drawing.
I'm noticing that whenever my -drawInContext gets called (in response
to calling -setNeedsDisplay) that there appears to be an actual
animated fade-out / fade-in of of the old content and the new content.
I
--- On Thu, 7/31/08, James Maxwell [EMAIL PROTECTED] wrote:
From: James Maxwell [EMAIL PROTECTED]
Subject: inspecting undo
To: Cocoa Dev cocoa-dev@lists.apple.com
Date: Thursday, July 31, 2008, 9:52 AM
I'm trying to figure out why a particular undo isn't
working and I'm
wondering whether
Nope. This version crashes as well:
[[[self webView] window] addChildWindow:[[theDocument webView] window]
ordered:NSWindowAbove];
I'm getting something wrong in the way I'm looking at this problem.
What am I not seeing?
Thanks,
-s
On Thu, Jul 31, 2008 at 1:01 PM, Sumner Trammell
On 31 Jul '08, at 10:24 AM, Joseph Kelly wrote:
I'm noticing that whenever my -drawInContext gets called (in
response to calling -setNeedsDisplay) that there appears to be an
actual animated fade-out / fade-in of of the old content and the new
content.
I do not see this transition effect
I was afraid of that... Thanks for the link, though! I'll have to go study it.
Cheers,
Dave
On Thu, Jul 31, 2008 at 8:46 AM, Keary Suska [EMAIL PROTECTED] wrote:
7/30/08 6:33 PM, also sprach [EMAIL PROTECTED]:
I've got an NSArrayController that I'd like to use to populate an
NSMenu for
I have a formal protocol that declares two methods. I have a class
that adopts this protocol. This class implements one of the protocol
methods. This class inherits from another class. This super class
actually implements a method matching the signature of the second
method declared in
How are you doing, all?
I found a interesting one with the NSValue class, and would like to ask
a couple of questions.
First, I would like to put data from a callback function to an global or
a singleton NSArray. The data structure which holds the all the data is :
typedef struct
On Jul 31, 2008, at 11:36 AM, Mark Sanvitale wrote:
I have a formal protocol that declares two methods. I have a class
that adopts this protocol. This class implements one of the
protocol methods. This class inherits from another class. This
super class actually implements a method
On Jul 31, 2008, at 13:02, Pete Callaway wrote:
- (void)setSelectedPage:(PageEntity*)newPage
{
if (newPage == _selectedPage)
return;
[self willChangeValueForKey:@selectedPage];
_selectedPage = newPage;
[self
On 31 Jul '08, at 11:37 AM, JongAm Park wrote:
1. Whether the dataDesc is statically declared or not, although it
is freed in the end of the encode action handler, it is still
maintained and could be accessed from another message, recover.
And with the Memory browser, I could confirm that
On Thu, Jul 31, 2008 at 9:42 PM, Quincey Morris
[EMAIL PROTECTED] wrote:
On Jul 31, 2008, at 13:02, Pete Callaway wrote:
- (void)setSelectedPage:(PageEntity*)newPage
{
if (newPage == _selectedPage)
return;
[self willChangeValueForKey:@selectedPage];
On Jul 31, 2008, at 11:07 AM, Jens Alfke wrote:
The content of a layer is an animatable property, so by default,
changing the content will do a crossfade. It seems that applies to
custom content (drawn by -drawInContext:) as well as the content
property.
There are a couple ways to
Folks,
I would like to add instances of a subclass of NSColor to the color
panel. The problem is, when you change to another app that does not
know about this subclass, the NSColorPanel kind of freaks out and
shows all the colors as white (even the system colors) - in some cases
it just crashes
On Jul 31, 2008, at 3:20 PM, David Springer wrote:
I would like to add instances of a subclass of NSColor to the color
panel.
Why, exactly, did you subclass NSColor? NSColor is a class cluster,
like NSArray and NSString.
Nick Zitzmann
http://www.chronosnet.com/
This is a follow-up post to an earlier post I made regarding the
performance of updating a relationship property in thousands of
managed objects. After some profiling with Instruments, it became
clear that the performance bottle neck was actually in
NSArrayController. Since that
Hello.
Well, I did review the code as usual.
It is interesting that the exactly same memory blocks were allocated for
the interested data and dataDesc.
So, it looked like that it is referenced, although they were not.
Thanks.
Jens Alfke wrote:
Something's fundamentally wrong with your code,
On Jul 31, 2008, at 14:04, Pete Callaway wrote:
I don't think I'm doing anything behind Core Data's back particularly.
selectedPage is a property of the NSPersistentDocument, not of an
NSManagedObject. I have several view controllers and they each need to
know which entity to show the detail
Hi List,
Having read the Apple documentation and beginner guides on threading,
I am still a little confused about protecting my variables from access
by multiple threads.
A sample of my code is as follows:
@interface Class1 : NSObject
{
XMLFetcherParser *fetcherParser;
}
-
The only time you're sharing data across threads is via -
performSelectorOnMainThread:... which itself is thread safe.
So the main thing you have to work through is the memory management of
the data which XMLFetcherParser is passing to the -receiveItem: method
on the main thread. The
I think I am doing exactly what you say is necessary (i.e. declare
the second method in the superclass's public interface).
Here are some code snippets:
PortalTabView is the super class (which happens to also adopt a
protocol, which is not part of this issue but including it for
On 31 Jul '08, at 9:59 AM, Ben wrote:
For usage, the summary is that I do:
[NSThread detachNewThreadSelector:@selector(doBackgroundFetch)
toTarget:self withObject:nil];
and then -[XMLFetcherParser doYourThing] repeatedly sends newly
created objects to receiveItem: using the
On 31 Jul '08, at 3:02 PM, JongAm Park wrote:
It is interesting that the exactly same memory blocks were allocated
for the interested data and dataDesc.
It's actually pretty likely... malloc( ) often reuses a recently-freed
block of the same size when it can, because this avoids heap
On Fri, Aug 1, 2008 at 4:59 AM, Ben [EMAIL PROTECTED] wrote:
and then -[XMLFetcherParser doYourThing] repeatedly sends newly created
objects to receiveItem: using the performSelectorOnMainThread method. Once
the spawned thread has done this, it never uses the sent object again.
My question
Jens response just reminded me to check the docs, and it says of -
performSelectorOnMainThread:...:
This method retains the receiver and the arg parameter until after
the selector is performed
So I retract what I said before. So long as, was noted, you do not
mess with the passed object
Hi Hamish,
On Thu, Jul 31, 2008 at 10:16 PM, Hamish Allan [EMAIL PROTECTED] wrote:
On Tue, Jul 29, 2008 at 3:33 AM, Chris Suter [EMAIL PROTECTED] wrote:
It sounds to me like you've got some kind of timing issue and that the
delay
that you're adding is merely hiding the true cause of the
Hi,
I have an NSCollectionView with an NSArrayController whose repeating
NSView contains a single button.
When I create a new instance of the NSView I want to get the button's
id without using the id that is passed with the IBAction message.
How do I do it?
Currently I have a MyElem class
On Thu, Jul 31, 2008 at 7:14 PM, Mark Sanvitale [EMAIL PROTECTED] wrote:
@interface PortalActionView : PortalTabView ReadArchiveClient
So, PortalActionView does implement processedArchive: (without declaring it
in its interface) but the displayCapture method is coming from its super
class
I've solved it, finally. My mistake was not realizing that the
(WebView *)sender being passsed into webViewShow: is the CHILD
webView. I needed to act on the parent webView before things got that
far.
I added the call to addChildWindow:ordered: and things work perfectly.
Move the main window,
That should be:
I added the addChildWindow:ordered: call to webView:createWebViewWithRequest:
and things work perfectly.
-s
On Thu, Jul 31, 2008 at 10:55 PM, Sumner Trammell
[EMAIL PROTECTED] wrote:
I've solved it, finally. My mistake was not realizing that the
(WebView *)sender
On Jul 31, 2008, at 4:14 PM, Mark Sanvitale wrote:
I think I am doing exactly what you say is necessary (i.e. declare
the second method in the superclass's public interface).
Here are some code snippets:
Turning your code snippets into a test program, I can't reproduce that
compiler
On Jul 31, 2008, at 10:03 AM, I. Savant wrote:
On Thu, Jul 31, 2008 at 12:52 PM, James Maxwell
[EMAIL PROTECTED] wrote:
AFAIK there's no way to print the whole undo stack, but can I just
see the
top?
There's no public API for directly accessing the stacks (undo and
redo), however you
On Jul 31, 2008, at 2:20 PM, David Springer wrote:
I would like to add instances of a subclass of NSColor to the color
panel. The problem is, when you change to another app that does not
know about this subclass, the NSColorPanel kind of freaks out and
shows all the colors as white (even the
I've got a core-data document based app. I need to programmatically create or
open a document at a programmatically chosen location and display it in a
window. This is what I tried:
[[NSDocumentController sharedDocumentController]
makeDocumentWithContentsOfURL:url ofType:mytype error:error];
Alright, I'm able to get a view that can resize to a NSTextView
subview's size, and it works as the document view of a scroll view,
but I'm still not sure how to make it work with another view above it.
On Mon, Jul 28, 2008 at 8:53 AM, Andy Lee [EMAIL PROTECTED] wrote:
I don't know offhand. A
57 matches
Mail list logo