Thanks everyone! Your answers helped, it's what I thought, I was just
overthinking things.
> You can certainly bind any number of UI objects to a single property of an
> object.
>
> Specifying an IBOutlet is only necessary if you want to create a connection
> and can only be connected to one thi
Is it possible to link multiple NSTextFields to one outlet? I have
three views - one of A items, one of B items, and one of both A and B
items. So the text boxes in the A view also exists in the A&B view,
and the value needs to be able to appear in both, though not at the
same time. I have a method
On Fri, Apr 2, 2010 at 2:08 PM, Nick Zitzmann wrote:
> There's one more thing. WebView loads requests asynchronously, so you need to
> block while it is loading the request and laying out the page while taking
> some time out to run the run loop. So do something like this:
>
AHA! Thank you, it
On Fri, Apr 2, 2010 at 9:40 AM, Nick Zitzmann wrote:
> That's most likely Flash Player at work, since it's been known to do this. To
> work around it, install a dummy SIGINT handler function that does nothing.
> See the signal man page for details.
>
Yup, you're right. That was just something I
> Not an NSRect, but you can get an NSSize from [[NSPrintInfo sharedPrintInfo]
> paperSize]. From that, you can build an NSRect with that value for the size
> and NSZeroPoint for the origin.
>
Great, I'm testing that method now. I get everything built alright,
but during the print operation (whi
Hi Nick...
On Sun, Mar 28, 2010 at 12:49 PM, Nick Zitzmann wrote:
>> Is it possible I could create it in a xib file and keep it invisible,
>> and handle closing programmatically so it's not a waste of memory?
>
> Yes.
>
Okay... how? I can uncheck "visible at launch," then how do I control
the vi
Hi all,
Going back a bit to my printing problem (http://groups.google.com/
group/cocoa-dev/browse_thread/thread/
cbf57025f0c2a7e0/99d39008358da90b), I'd like to call print on a
WebView which loads a locally-generated HTML file that is created
specially when my print function is called. So I'd like
to know you're here!
Thanks,
Jenny
On Thu, Mar 18, 2010 at 11:26 PM, Scott Anguish wrote:
>
> On Mar 18, 2010, at 7:17 PM, Jenny M wrote:
>
>> Sorry, no answer, I'm just having a similar issue. I need to print
>> columns of text, and all the examples I see indicate a ma
Ahhh, thank you, that helped! What I did was add an NSArray property
(though it could've been NSMutableArray), then called setValueForKey,
and bound the ArrayController to that array. And it works great.
Jenny
On Thu, Mar 18, 2010 at 8:26 PM, Scott Anguish wrote:
> Modify the model, not the con
Sorry, no answer, I'm just having a similar issue. I need to print
columns of text, and all the examples I see indicate a manual creation
and placement of EACH line of text in an NSRect inside the view. ...
Is there really no better way to place objects in the view?
Jenny
On Mar 18, 12:47 pm, B
Hi all, I'm having a problem adding the appropriate objects to an
NSArrayController. For some strange object model reasons, I will
probably need to set this by hand, but I'm having issues.
Back to my silly object discussions... before, it was about an
NSTreeController which I did get resolved, but
eeController passing in the Alpha.Beta.Deltas array, then reload the
> outlineview. Take the the binding for the tree controller though. I think
> that the way that you have your model set up it won't work through
> bindings. But I'm not totally sure.
>
>
> ---
> Mark Townsend
e said, this will never be true as the Alpha
> objects are your top level objects.
>
> Alpha (parent == nil)
> |
> |->Beta (parent == Alpha)
> |
> |->Delta (parent == Beta)
> |->Delta (parent == Beta)
>
> ---
> Mark Townsend
> http://www.markltow
eb 17, 7:22 pm, Jenny M wrote:
> My objects are chained like:
> Alpha (multiple) -> Beta (one) -> Delta (multiple) (delta has
> references to itself via parent and children relationships)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple
Hi all,
I have a collection of entities I'd like to display in an
NSOutlineView with an NSTreeController. My issue is, I don't know how
to set the bindings. All examples I've seen are where the Tree
Controller contains ALL entities of a type. I need just a set of them,
but nothing I've tried to se
Hi Ken,
Thanks for your tips. We're closer I think. I took off the Selected Index
binding and instead bound the Selected Value to
ArrayController-selection-name. I'm probably binding it wrong though,
because I haven't quite gotten it to work yet.
I think what you say makes sense, about the select
When I tried to use the getter/setter, I get a build warning that says
the NSManagedObject may not respond to that method. I noticed in the
documentation, they're referring to the entities themselves - Employee
and Department. I don't use custom classes, just the data model, so
I've been referring
I've been setting it using key-value coding: [object setValue:mySet
forKey:categories] so far, so that's good to know I'm on the right track.
Though at the moment I am apparently having difficulties comparing strings,
because I can't get my log messages to appear in the console hmm.
Okay, duh,
Hi all,
I need to add a set of default objects to my core data store when the
application is launched for the first time. (I store the properties for
these objects in the app's plist.) The two objects (Types and Categories)
are both to-many relationships - one type has many categories, and one
cat
Like I mentioned previously - when I do that, it stays there even after an
object has been added, which is not what I'm aiming for. I only want it to
appear when empty.
In your content binding for the popup button in Interface Builder, check the
> "Inserts Null Placeholder" checkbox and enter a v
Cancel Message #2 - I figured out how to change the selected object. I added
one more binding - I bound the NSPopUpButton "Selected Index" to
"ArrayController.selectionIndex".
However, message #1 still stands - how do I implement a placeholder object
only when the array is empty??
Uhh, okay so there's another problem I discovered. Below the popupmenu, I
have two text fields that are supposed to show two of the attributes of the
selected object (in the array controller). But changing the selection in the
popupmenu does NOT change the selected item in the array controller. How
Hi all,
I have an Array Controller whose objects are displayed in an NSPopUpButton.
I can add and remove objects, and they refresh automatically in the box as
expected.
However, what can I do if the array controller becomes empty? If I delete
all the objects, or if the window starts up with an em
Empty Selection" checkbox in IB for the
arraycontroller.
Works great now..
On Mon, Jan 11, 2010 at 11:28 PM, Jenny M wrote:
> When my application launches, I have a custom BackgroundView that takes the
> role of first responder. Within the main window, I have a NSScrollView that
> con
e sqlite query, then you can dump out of the
> method.
>
> Regards,
>
> Phil
>
>
> On Jan 12, 2010, at 2:28 AM, Jenny M wrote:
>
> When my application launches, I have a custom BackgroundView that takes the
> role of first responder. Within the main window, I have a NSScroll
When my application launches, I have a custom BackgroundView that takes the
role of first responder. Within the main window, I have a NSScrollView that
contains core data objects in an NSArrayController. I want the objects to
load in the table on launch, but I don't want any objects to be *selected
Thanks guys, I think I am understanding this more now. A few more
questions...
You can do whichever you like. I tend to wander objects up and down my
> various controller and delegate chains as I write code because where I think
> I want it, I sometimes don't want it. Ask yourself this, what is t
Oooh... okay, that helps... I haven't loaded yet, so I'm not sure what to
put in it. In the MyObject XIB file, I manually set File's Owner to be the
custom NSWindowController subclass, not AppDelegate. But, I'm trying to open
the sheet from the AppDelegate class. Is that possible?
It's possible I
> Learning your way around the documentation takes awhile, but do it whenever
> you can. In your Xcode documentation window, in the search field at the top
> right, type "Sheet Programming Topics". You'll get a wonderful document
> which will explain many things you can't figure out by following
t; (called in the example you refer to) what type it should be:
>
> - (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow
> *)docWindowmodalDelegate:(id)modalDelegate
> didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo
>
> Thus, myCustomSheet is an instance of NSWi
Hi, I have what may seem like a very stupid question about custom sheets. I
am following this Apple dev tutorial:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Sheets/Tasks/UsingCustomSheets.html
and I'm looking at this piece of code here:
if (!myCustomSheet)
//Check t
31 matches
Mail list logo