Hi all!
I have the following situation: NSArrayController which handles array of
Core Data objects. Then I want to map it's selection (there can only be one
selected at a time) to NSObjectController's contents and then use the object
controller for binding to the view. I want to use the object con
Eric,
1. Can’t you use autoresizingMask for all subviews? You can do pretty much
automagic with it. Just let your Button hang to the lower and right borders.
A view should not resize/reposition itself.
2. Don’t put the view of controller B into a view of controller A.
Why not presentModalViewCon
I was able to fake it by subclassing a private method:
- (void)_addOptionFromSlice:(id)slice ofRowType:(unsigned int)type
{
int rowIndex = [(NSRuleEditorViewSlice*)slice rowIndex];
NSArray *criteriaForRow = [self criteriaForRow:rowIndex];
NSArray *displayValuesForRow = [se
Rick Mann wrote:
> On Dec 22, 2009, at 19:51:03, Kyle Sluder wrote:
>
>> On Tue, Dec 22, 2009 at 9:45 PM, Rick Mann wrote:
>>> I'm listening for that notification. Sure is a clunky way to do things.
>>> I've never used a view framework that didn't tell views when they became
>>> active/inactiv
Le 23 déc. 2009 à 12:06, Gregory Weston a écrit :
> Rick Mann wrote:
>
>> On Dec 22, 2009, at 19:51:03, Kyle Sluder wrote:
>>
>>> On Tue, Dec 22, 2009 at 9:45 PM, Rick Mann wrote:
I'm listening for that notification. Sure is a clunky way to do things.
I've never used a view framewor
On Dec 22, 2009, at 21:40, Rainer Standke wrote:
> is there a way to store regular ivars in docs of a core data doc-based
> applictions?
What's a doc? Seriously, are you talking about a file, or a
NSPersistentDocument subclass instance, or what?
If you're asking "Is it possible to archive arbi
On 23/12/2009, at 9:18 PM, Quincey Morris wrote:
> What's a doc? Seriously, are you talking about a file, or a
> NSPersistentDocument subclass instance, or what?
>
> If you're asking "Is it possible to archive arbitrary values as raw binary
> data or perhaps using the NSKeyedArchiver mechanism
On Dec 23, 2009, at 00:10, Tom wrote:
> I have the following situation: NSArrayController which handles array of
> Core Data objects. Then I want to map it's selection (there can only be one
> selected at a time) to NSObjectController's contents and then use the object
> controller for binding to
Thanks. I did but nothing changed... No message in console also. Just the
label always has no selection displayed.
I've also verified and the object controller does change it's
content/selection properly, so it has probably something to do with the
label binding. But I have no clue as to what coul
On Dec 23, 2009, at 03:15, Jean-Daniel Dupas wrote:
> Le 23 déc. 2009 à 12:06, Gregory Weston a écrit :
>
>> Rick Mann wrote:
>>
>>> I'm not against the notification, I just think NSView should have an active
>>> property. Views do become inactive (look at any well-designed control).
>>
>> Di
Hello everyone!
In my application I need to execute command with privileges using
AuthorizationExecuteWithPrivileges.
To obtain authorization reference from system I use the following code
const AuthorizationRights* kNoRightsSpecified = NULL;
OSStatus err = Author
On Dec 23, 2009, at 03:28, Rob Keniger wrote:
> On 23/12/2009, at 9:18 PM, Quincey Morris wrote:
>
>> What's a doc? Seriously, are you talking about a file, or a
>> NSPersistentDocument subclass instance, or what?
>>
>> If you're asking "Is it possible to archive arbitrary values as raw binary
On Dec 23, 2009, at 03:36, Tom wrote:
> Thanks. I did but nothing changed... No message in console also. Just the
> label always has no selection displayed.
>
> I've also verified and the object controller does change it's
> content/selection properly, so it has probably something to do with the
On 23/12/2009, at 10:15 PM, Jean-Daniel Dupas wrote:
>> Did you happen to have an 'a-ha' moment when you typed that sentence?
>> "Views" don't generally have an active/inactive state. Controls, which are a
>> special case of view, do. So have you considered making your custom view an
>> NSCont
Le 23 déc. 2009 à 13:50, Graham Cox a écrit :
>
> On 23/12/2009, at 10:15 PM, Jean-Daniel Dupas wrote:
>
>>> Did you happen to have an 'a-ha' moment when you typed that sentence?
>>> "Views" don't generally have an active/inactive state. Controls, which are
>>> a special case of view, do. So
Well, Ricky I see you're one of the few who has really thought through all the
issues.
On 2009 Dec 22, at 19:59, Kyle Sluder wrote:
> On Tue, Dec 22, 2009 at 11:54 AM, Ricky Sharp wrote:
>> * No plural forms (while allowing plurals can be handled, it's not worth the
>> effort IMO)
That's goo
On 23/12/2009, at 4:39 PM, Akash Nemani wrote:
> Is there a way to get a virtual folder in mac? Something like the win 7
> library folder? Basically I am trying to create a folder in which if a file
> is copied or dragged, it creates a link to the original file into the
> folder instead of copyi
On Tuesday, December 22, 2009, at 09:59PM, "Kyle Sluder"
wrote:
>On Tue, Dec 22, 2009 at 11:54 AM, Ricky Sharp wrote:
>> (2) Externalize all strings from the nibs and put them into
>> Localizable.strings. This allows me to have a single file to hand off to
>> translators. I can also group
2009/12/23 Jerry Krinock :
>
> I read somewhere that in some languages, for example Arabic, there are
> actually different forms for "one", "two", and "three or more".
Localizing plurals is hard because the plural rules for different
languages are complex. Just stay away from plurals if you can.
Dear List,
I am still learning bindings and CoreData, but I have recently completed
another relatively basic program using both these technologies. I learn best by
seeing other people's code, so in that vein, I'm posting my source (iCredit is
the newer program, but Billing Project also uses thes
If I have a XIB that I laid out my UI with in IB, and I call that view up as
a subview in my main view:
NSArray *nibViews = [[NSBundle mainBundle] loadNibNamed:@"Settings"
owner:self options:nil];
*[self.view addSubview:[nibViews objectAtIndex:0]];*
*
*
*What is the best way to associate a clas
Apologies for the newbishness of this question, but I've been away
from IB for quite some time (and never went very deep with it in the
first place).
Let's say I want to have two NSButtons (called 1 and 2) that will
cause an NSTabView to switch to tab 1 and 2, respectively. I don't
want
On 12/23/09 4:10 AM, Quincey Morris said:
>A file wrapper (or, *shudder*, a resource fork) might be a solution for
>a determined person, but it would be far easier to embed the data in a
>Core Data property.
Yup. But then you have the joy of persistent store migration. :(
Another option might b
On 23 dec 2009, at 08.15, Wade Williams wrote:
> 1) Subclass the NSButton and have it call selectTabViewItemAtIndex when
> pressed
In Cocoa you wouldn't subclass standard controls to implement specific action
handling like this. It's not the Cocoa way.
I also curious as to why you would even
On Dec 22, 2009, at 6:07 PM, PCWiz wrote:
The issue class in my case is NSLayoutManager. I dug through the
docs for NSLayoutManager and read the section on thread safety.
There were 2 steps to achieving thread safety with NSLayoutManager.
First, if the NSLayoutManager belonged to an NSText
On Dec 22, 2009, at 11:49 PM, Franck Zoccolo wrote:
> You said that you're using garbage collection. When using GC retain and
> release messages do nothing, and the retain count is not used to
> determine when an objet can be freed from memory.
If -retainCount is returning 1, then he can't be us
On Dec 22, 2009, at 9:40 pm, Michael Craig wrote:
> At the point where the tutorial discusses garbage collection (end of ch. 5),
> I decided to implement the deallocation of the Converter objects created by
> ConverterController's convert: method. I want the deallocation to happen
> inside conver
I'm looking at converting some C++ code to Objective C. A set of utility
classes that I'd written use the expat C library to convert XML into an object
graph. As I experimented with switching that over to use NSXMLParser instead,
it dawned on me that I was looking at creating a simple-minded,
Michael Craig wrote:
If I'm missing some key concept here, just point me in the right
direction
and I'll go learn it. If it's something more specific, fill me in!
In ownership terms, you released the object, so you no longer own
it. References to it after that point are illegal, even if t
Yes, that was my question. Thanks for your help,
Rainer
On Dec 23, 2009, at 3:18 , Quincey Morris wrote:
On Dec 22, 2009, at 21:40, Rainer Standke wrote:
is there a way to store regular ivars in docs of a core data doc-
based applictions?
What's a doc? Seriously, are you talking about a f
Thanks! I've got a better grip on memory management now.
By the way, I'm working with GC turned off, for the sake of learning this
stuff. My bad for not including that.
Michael S Craig
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> P
It all seems to be stable now, so turning off background layout worked :-)
Thanks
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2009-12-23, at 9:45 AM, Douglas Davidson wrote:
>
> On Dec 22, 2009, at 6:07 PM, PCWiz wrote:
>
>> The issue class in my case is NSLayoutMan
On Dec 23, 2009, at 03:06:58, Gregory Weston wrote:
> Did you happen to have an 'a-ha' moment when you typed that sentence? "Views"
> don't generally have an active/inactive state. Controls, which are a special
> case of view, do. So have you considered making your custom view an NSControl
> i
On Dec 23, 2009, at 03:15:11, Jean-Daniel Dupas wrote:
> and 'active' is called 'enabled' in Cocoa.
Again, "active" and "enabled" are orthogonal properties.
--
Rick
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin re
On 23 Dec 2009, at 18:01, Phillip Mills wrote:
> I'm looking at converting some C++ code to Objective C. A set of utility
> classes that I'd written use the expat C library to convert XML into an
> object graph. As I experimented with switching that over to use NSXMLParser
> instead, it dawn
I have a main view. It calls up a subView (UIView) like so:
In the .m of the view controller:
#import "SettingsView.h" //this is my UIView class
...
NSArray *nibViews = [[NSBundle mainBundle] loadNibNamed:@"Settings" owner:
self options:nil];
SettingsView *settingsView = (SettingsView *)[nibVie
Mike.
Sent from my iPhone
On 23 Dec 2009, at 07:45 PM, "Eric E. Dolecki"
wrote:
I have a main view. It calls up a subView (UIView) like so:
In the .m of the view controller:
#import "SettingsView.h" //this is my UIView class
...
NSArray *nibViews = [[NSBundle mainBundle] loadNibNamed:
In an iPod Touch/iPhone app where the view is in 1 xib and it's controller is
in a different one, according to the view-controller-data paradigm, is there a
better way to link the view to the controller than
[(myView *) [[self view] setController: self]
in the controller where "controller" has
Good day. I have troubles on unchecking a checkbox in a table view. Here are
my codes. Your help is highly appreciated. Im new to cocoa.
declarations
IBOutlet NSTableView* oTableView;
NSMutableArray* oDatas;
NSTableColumn *columnInCheckBox;
-(IBAction)tableViewSe
How to use (bind) NSArrayController and NSTableView in XCode 3.2
In the XCode 3.1 i'm use Referencing Binding in Array Controller
Connections
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comm
I JUST discovered that - thanks. THAT caused my EXC_BAD_ACCESS? I spent 2
hours looking and digging and finally NSLogged the app delegate so I knew I
had it... and figured it was on the other end.
Happy Holidays everyone. I'm too angry at myself to continue for the day.
On Wed, Dec 23, 2009 at 3:
On Dec 23, 2009, at 11:21, Rick Mann wrote:
> On Dec 23, 2009, at 03:15:11, Jean-Daniel Dupas wrote:
>
>> and 'active' is called 'enabled' in Cocoa.
>
> Again, "active" and "enabled" are orthogonal properties.
Again, "active" isn't a *property* of views, or even of controls, for that
matter.
In my NSDocument app I have three Panels that will act as inspectors
for the document content.
In best Cocoa practices, should these Panels be owned by a window
controller?
db
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
On Dec 23, 2009, at 02:05, Lance Kwan wrote:
> I have troubles on unchecking a checkbox in a table view.
What troubles? We can't help if we don't know.
> if([buttonCell state] == 1)
Why are you using 0 and 1 for your 'if' tests, instead of NSOffState and
NSOnState?
>
Is there a reason why your view so tightly bound to it's controller?
Typically you define a protocol for any object to respond to and
expose a delegate property to define that type of interface. Examples
of this are very common in AppKit and UIKit, such as NS/UITableView or
UIImagePickerCon
On Dec 23, 2009, at 11:19 AM, Charlie Dickman wrote:
> In an iPod Touch/iPhone app where the view is in 1 xib and it's controller is
> in a different one, according to the view-controller-data paradigm, is there
> a better way to link the view to the controller than...
Surely the controller is
On Dec 23, 2009, at 2:20 PM, Rick Mann wrote:
>
> On Dec 23, 2009, at 03:06:58, Gregory Weston wrote:
>
>> Did you happen to have an 'a-ha' moment when you typed that sentence?
>> "Views" don't generally have an active/inactive state. Controls, which are a
>> special case of view, do. So have
On Dec 23, 2009, at 13:26:11, Gregory Weston wrote:
> With this expanded explanation, I think the correct answer is that you're
> going about it the wrong way. It's not a normal Mac HI behavior for a drawing
> canvas to draw itself differently as a side-effect of its window being
> inactive.
On Dec 23, 2009, at 7:38 AM, Jerry Krinock wrote:
>
> Well, Ricky I see you're one of the few who has really thought through all
> the issues.
>
> On 2009 Dec 22, at 19:59, Kyle Sluder wrote:
>
>> On Tue, Dec 22, 2009 at 11:54 AM, Ricky Sharp wrote:
>>> * No plural forms (while allowing plur
Please disregard my question about Window Controllers.
db
On Dec 23, 2009, at 1:48 PM, David Blanton wrote:
I meant should each Panel have a Window Controller.
On Dec 23, 2009, at 1:45 PM, David Blanton wrote:
In my NSDocument app I have three Panels that will act as
inspectors for the doc
What kind of event can trigger a non-linear selection to be replaced
by multiple strings in different ranges?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mo
In many apps, you can hold down the option key to change the cursor into a
crosshair, and do a vertical selection. In addition, in apps like Pages, you
can hold down the command key to do a non-contiguous selection. I'd imagine
that both of these scenarios might result in that method getting i
On 24/12/2009, at 8:26 AM, Gregory Weston wrote:
> With this expanded explanation, I think the correct answer is that you're
> going about it the wrong way. It's not a normal Mac HI behavior for a drawing
> canvas to draw itself differently as a side-effect of its window being
> inactive.
Wel
On 24/12/2009, at 7:45 AM, David Blanton wrote:
> In best Cocoa practices, should these Panels be owned by a window controller?
Yes.
--Graham
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator co
On Dec 23, 2009, at 14:53:43, Graham Cox wrote:
>
> On 24/12/2009, at 8:26 AM, Gregory Weston wrote:
>
>> With this expanded explanation, I think the correct answer is that you're
>> going about it the wrong way. It's not a normal Mac HI behavior for a
>> drawing canvas to draw itself differe
I've been going through the NSTrackingArea docs and Apple examples but I can't
seem to figure it out.
1. Does NSTrackingArea support mouseDown events? If so, how would I find if the
click is within the bounds of a tracking rect in my mouseDown handler?
2. For mouseEntered and mouseExited handler
On Dec 23, 2009, at 15:03, PCWiz wrote:
> 1. Does NSTrackingArea support mouseDown events? If so, how would I find if
> the click is within the bounds of a tracking rect in my mouseDown handler?
No. At the time you receive the mouseDown it's assumed you already know which
tracking area(s) you'r
I meant should each Panel have a Window Controller.
On Dec 23, 2009, at 1:45 PM, David Blanton wrote:
In my NSDocument app I have three Panels that will act as inspectors
for the document content.
In best Cocoa practices, should these Panels be owned by a window
controller?
db
__
Glad to meet you, the DSClickableURLTextField class has been excellent :) I
didn't subclass it, I just made my own little modifications to it here and
there. Here is the minSizeForContent method:
- (NSSize)minSizeForContent {
// Grab the height for the text
float newHeight = [[s
In my application when I do the following something strange happens.
Add a managed object to the store, save the file, then save the file
as another name.
Upon saving the file with another name, core data will create and then
destroy some kind of transitory shadow object of the same kind as
I just spent many hours tracking down a problem that turned out to be that a
column width had been written to my app's user defaults as Not a Number (nan).
The only line of code that writes this pref assigns it directly from
-[NSTableColumn width]. I don't see any indication in the documentati
draggingSourceOperationMaskForLocal: returns
NSDragOperationCopy|NSDragOperationMove|NSDragOperationDelete
When my draggingUpdated: returns NSDragOperationCopy, I get the plus cursor
When it returns NSDragOperationMove I get the normal arrow cursor
...but when it returns NSDragOperationDelete, I
On 24/12/2009, at 7:48 AM, David Blanton wrote:
> I meant should each Panel have a Window Controller.
Yes.
--Graham
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
On 24/12/2009, at 2:58 PM, Jerry Krinock wrote:
> I just spent many hours tracking down a problem that turned out to be that a
> column width had been written to my app's user defaults as Not a Number
> (nan). The only line of code that writes this pref assigns it directly from
> -[NSTableCol
On Dec 23, 2009, at 7:41 PM, Richard Somers wrote:
> In my application when I do the following something strange happens.
>
> Add a managed object to the store, save the file, then save the file as
> another name.
>
> Upon saving the file with another name, core data will create and then
> de
Hi !
I must have killed the gods of array bindings in a previous life,
but I'm pulling my hair (or whatever's left), and, even though I
thought I got I, well, I really don't.
I'm trying to do something quite simple.
I'd like to display a series of images with a label inside an
NSCollectionView.
W
I forgot to mention a couple things :
- my NSArrayController has the mode set to Class, and my custom content
class setup.
- I added a label to the item view that isn't bound to anything, just to see
if it would show
up, and it doesn't. which really makes me think it's an arraycontroller
problem (i
Greg,
Alexander.
I finally resolved the issue. I simply deleted and completely rewrote this
particular controller as I could not figure out what the problem was. My
application is now running without a hitch.
Greg, thanks for your proposed approach (by the way the cap was my error, but
not
Here's a followup.
I hadn't written the kvo methods for the array inside my windowController
(the array which holds the content for the
bound NSCollectionView).
I did so, and now, as soon as I add an entry to the array I get these
strange exceptions :
*Could not connect the action orderFrontStanda
(Sorry about the many emails)
I thought I was using a windowController, actually I handle everything
through an NSPersistentDocument
that I subclassed. So the File's Owner is an NSPersistentDocument. Could
this be the culprit ?
___
Cocoa-dev mailing list
70 matches
Mail list logo