I've got a two column NSTableView that is bound to an array controller. Each of
the elements in the array looks something like this...
NSMutableDictionary *theDictionary = [NSMutableDictionary
dictionaryWithDictionary: @{@myOptions:theOptionArray,@myTitle: theTitle}];
Column 1 is bound to
through
menu validation instead of bindings.
On Aug 2, 2013, at 1:12 PM, Chris Tracewell wrote:
I've got a two column NSTableView that is bound to an array controller. Each
of the elements in the array looks something like this...
NSMutableDictionary *theDictionary = [NSMutableDictionary
that the NSPopUpButtonCell also has an autoenables
items flag; a quick bit of hacking on the ButtonMadness sample app shows that
needs to be off too. I'll send you the files off-list.
On Aug 2, 2013, at 1:56 PM, Chris Tracewell wrote:
Thanks for the suggestion, I had already done
I have a tableview that has two columns. The second column has an
NSPopUpButtonCell. The tableview content is supplied via an array controller of
dictionaries. The first column shows the title key's value and the second
column (the NSPopUpButtonCell) shows and array of choices in the
options if need be?
-CT
On Jun 4, 2013, at 7:31 PM, Graham Cox graham@bigpond.com wrote:
On 05/06/2013, at 11:56 AM, Chris Tracewell ch...@thinkcl.com wrote:
Is this normal behavior? Thanks for the help.
Probably. This method should just answer the question, not attempt
I've got a view controller set up as the delegate for an outlineView. The view
controller implements the -(BOOL)outlineView:(NSOutlineView *)outlineView
shouldSelectItem:(id)item delegate method. I show an alert and return NO if the
user has not saved some changes or return YES if all is well.
On Mar 25, 2013, at 7:33 PM, Conrad Shultz conrad_shu...@apple.com wrote:
In the code you shared you had used delegate in one place and [self
delegate] in another; the second case is the correct one. If you replace all
naked uses of delegate with [self delegate] and you continue to get
On Mar 26, 2013, at 12:38 PM, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
2. Redeclare the delegate property:
@interface TKOutlineView : NSOutlineView {}
@property (nonatomic,readonly) idTKOutlineViewDelegate delegate;
@end
@implementation
On Mar 26, 2013, at 12:38 PM, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
2. Redeclare the delegate property:
@interface TKOutlineView : NSOutlineView {}
@property (nonatomic,readonly) idTKOutlineViewDelegate delegate;
@end
@implementation
On Mar 26, 2013, at 1:11 PM, Conrad Shultz conrad_shu...@apple.com wrote:
If code expecting an NSOutlineView receives a TKOutlineView instance it may
break or behave unexpectedly since it may well try to set a delegate
conforming to NSOutlineViewDelegate but you have made your class require
I have a subclass of NSOutlineView that has custom delegate methods. In the
implementation file I get an error for No known instance method for
selector... when I call these declared methods using [self delegate] or
delegate. However the compiler suggested using _delegate and that makes the
On Mar 25, 2013, at 1:54 PM, Conrad Shultz conrad_shu...@apple.com wrote:
[self delegate] is not the same as delegate - the former sends the
-delegate message, the latter references a variable named delegate (which
the compiler is telling you does not exist).
I assumed that since my subclass
In a project I am moving from GC to ARC I'm trying to understand the nuances of
the new declarations. I have many pre-ARC properties that look like...
@interface TKObject : NSObject
{
NSString *theString;
On Mar 22, 2013, at 1:51 PM, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
Note that you can likely just remove the ivar declaration completely, or at
worst move it to the @implemenation statement instead. There's really no need
to put a private ivar in a public interface file
On Mar 22, 2013, at 3:27 PM, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
(sorry, this turned into a tome)
No need to apologize. Very, very helpful - thank you so much for the input, it
clears everything up. I'll be reading up on the modern Objective-c changes.
Thanks
CT
I have a main window which has a child/auxilary window. When the user presses a
button in the UI the main window controller inits the child, assigns itself as
the object for the child window's myOwner property and then launches the child
window as a modal via NSApp runModalForWindow. This
I usually use the sample in line 1 when declaring vars inside my methods.
NSString *theString = [NSString string];
NSString *theString = nil;
NSString *theString;
I thought lines 2 and 3 were the same thing. I was wrong. What is the
difference and when do you use the style shown in line 3?
On Apr 26, 2012, at 1:17 PM, Fritz Anderson wrote:
You should be able to get this from any elementary book about C.
I'm sure you are correct.
NSString *theString = nil;
fills it with zero (not a pointer to anything).
NSString *theString;
and doesn't fill it with anything; the
On Apr 26, 2012, at 1:20 PM, David Duncan wrote:
In C unless you explicitly initialize a local variable its value is
undefined, and Objective-C inherits this behavior.
Thank you, that was what I was after.
I believe however that under ARC these lines are equivalent (at least thats
my
On Mar 13, 2012, at 5:27 PM, Jens Alfke wrote:
On Mar 13, 2012, at 4:33 PM, Chris Tracewell wrote:
NSDrawTiledRects(NSInsetRect(theVendorTextRect,10,10), theVendorTextRect,
theSides, theGrays, 1);
NSDrawTiledRects(theBillToTextRect, theBillToTextRect, theSides, theGrays,
1
Using XCode 3.2.6, OSX 10.6.8 - GC is on
I have three rects I am trying to stroke on all four sides using
NSDrawTiledRects however only the first side listed in my NSRectEdge list gets
drawn. I'm using the boundsRect as the clippingRect but that shouldn't should
it? I did experiment with
XCode 4, 10.6 GC -- I have an IKImageBrowserView which I have implemented drag
and drop for. I have set my view controller as the image browser's drag
delegate, registered for pasteboard drag types in awakeFromNib and implemented
DnD protocol methods like so...
-(void)awakeFromNib
{
I have a private framework that is included in a project. Many of the project
classes descend from a class in the framework. All of these descendent classes
implement copyWithZone, encodeWithCoder and initWithCoder and thus respectively
calls each on super. I get warnings stating that
On Jul 21, 2011, at 9:33 AM, Nick Zitzmann wrote:
On Jul 21, 2011, at 9:51 AM, Chris Tracewell wrote:
I have a private framework that is included in a project. Many of the
project classes descend from a class in the framework. All of these
descendent classes implement copyWithZone
On Fri, Feb 11, 2011 at 5:14 PM, Chris Tracewell ch...@thinkcl.com wrote:
I have experienced that an NSTableview which is bound to an array controller
will sometimes automatically sort when their column headers are clicked and
sometimes not. As an example, I currently have two windows, each
Did you actually bind the table view's sortDescriptors binding to the
array controller's sortDescriptors property?
No, but that's why I posted, trying to figure out when this can be avoided.
In the simplest case (all columns bound to different keys on the same
NSArrayController),
I have experienced that an NSTableview which is bound to an array controller
will sometimes automatically sort when their column headers are clicked and
sometimes not. As an example, I currently have two windows, each with a
tableview bound to an array controller. One tableview sorts, the other
NOTE :: GC Enabled
I am using an NSScanner in an NSString category but am crashing whenever I try
to log the string I scanned into or to return it. If I comment out the NSLog
there are no problems.
NSString *theScannedString;
NSScanner *theScanner = [NSScanner scannerWithString:theNewHTML];
theScannedString pointer is probably
still invalid.
Kiel
On 16/10/2010, at 5:44 AM, Chris Tracewell wrote:
NOTE :: GC Enabled
I am using an NSScanner in an NSString category but am crashing whenever I
try to log the string I scanned into or to return it. If I comment out the
NSLog
, 2010, at 4:45 AM, slasktrattena...@gmail.com wrote:
NSImage has a -setCachePolicy: (?) method. Not sure if it's the right
name, but you can look it up in the docs.
On Tue, Oct 5, 2010 at 11:46 PM, Chris Tracewell ch...@thinkcl.com wrote:
I have an NSImageView that accepts an image drop
I have an NSImageView that accepts an image drop then sizes the image and ftp's
it to a web server. The image view is bound to myObject.myImage property which
set by a window controller calling its loadMyImage every time the window
opens...
-(void)loadMyImage
{
NSImage
Shoulda said I'm using GC
On Oct 5, 2010, at 2:56 PM, Jonathon Kuo wrote:
You're missing a [theImage release] at the end of your method.
On Oct 5, 2010, at 2:46 PM, Chris Tracewell wrote:
I have an NSImageView that accepts an image drop then sizes the image and
ftp's it to a web server
On Sep 8, 2010, at 10:21 AM, cocoa-dev-requ...@lists.apple.com wrote:
The message in the 'if' ([theNumOne compare:theNumTwo]) is an invocation of
[NSNumber compare:], not [NSDecimalNumber compare:]. It's not absolutely
clear what is supposed to happen when the compare parameter is an
On Sep 8, 2010, at 10:21 AM, cocoa-dev-requ...@lists.apple.com wrote:
The message in the 'if' ([theNumOne compare:theNumTwo]) is an invocation of
[NSNumber compare:], not [NSDecimalNumber compare:]. It's not absolutely
clear what is supposed to happen when the compare parameter is an
On Sep 8, 2010, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote:
It's not YES that's being returned as -256, but NO. (The answer is NO in
all 3 cases.) -256 is 0xFF00, so you can see that NO (i.e. (signed char)
0) is being correctly returned in the low order byte, with trash in the
On Sep 8, 2010, at 1:29 PM, Greg Parker wrote:
On Sep 8, 2010, at 12:40 PM, Chris Tracewell wrote:
On Sep 8, 2010, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote:
It's not YES that's being returned as -256, but NO. (The answer is NO in
all 3 cases.) -256 is 0xFF00, so you can see
I have a category on NSDecimalNumber that seems very straight forward - yet is
producing odd results. The code below shows my logging and everything outputs
as expected - but the final evaluation does not work. Am I misunderstanding
something?
-(BOOL)isLessThanZero
{
NSNumber
On occasion I refactor a controller or model by deleting a property. I do my
best to remove associated bindings in IB, but many times I miss something - a
textfield bound to a deleted property for example. This leads to...
this class is not key value coding-compliant for the key myProperty.
In
I have two arrays, A and B, that each contain objects that have a myTotal
property. In IB I use an array controller for each and show their contents in
separate NSTableview's and then display the sum for each by binding to
respective NSTextField's using the @sum array operator on their
Using GC, 10.6 and XCode 3.2.2 - I just implemented a validation method for the
myQuantity property of one of my models and cannot get it to work. The
problem is with the ioValue, it locks up the app whenever I try to read it.
After much frustration I simplified the validation to below an it
On Jun 24, 2010, at 6:59 PM, Graham Cox wrote:
On 25/06/2010, at 7:52 AM, Chris Tracewell wrote:
Obviously, I have a setting wrong somewhere as it is seeing an older version
of the framework than I am linking to. Any thoughts where I should look?
If the problem is that it can't see
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote:
On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell ch...@thinkcl.com wrote:
I have my own custom framework. The framework builds fine but when I link to
it in one of my projects one class is causing a compile error of...
'MyClass' undeclared
I have my own custom framework. The framework builds fine but when I link to it
in one of my projects one class is causing a compile error of...
'MyClass' undeclared (first use in this function)
This occurs when I am trying to init MyClass inside a view controller's .m file
in one of it's
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote:
On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell ch...@thinkcl.com wrote:
I have my own custom framework. The framework builds fine but when I link to
it in one of my projects one class is causing a compile error of...
'MyClass' undeclared
On Jun 8, 2010, at 6:26 PM, Graham Cox wrote:
On 09/06/2010, at 11:20 AM, Chris Tracewell wrote:
Why would it not be exporting the file? Yes, I added it to the target when I
created the file.
Right-click the file in Xcode and set its role to Public.
This necessary step is very
I just made my first private framework a few weeks ago. I took some common
categories and custom classes I use across projects and put them in my new FW.
All has been fine until today when I added a new class file to it. I clean and
build the FW and then build my project that is utilizing the
Noted... I'll file the bug report but will spare the xcode-users subscribers
the post as you answered my question.
Thank you.
--Chris
On Apr 15, 2010, at 5:28 PM, Kyle Sluder wrote:
On Thu, Apr 15, 2010 at 4:48 PM, Chris Tracewell ch...@thinkcl.com wrote:
Okay, so now that I flew off
Am I missing something or does the new Documentation viewer for XCode 3.2 suck?
I just upgraded my dev machine to Snow Leopard and installed XCode 3.2 and went
to look up some Obj-C classes and everything is wacked. Gone is the filtered
search results TableView above my the documentation pages
On Apr 6, 2010, at 8:16 PM, Ken Ferry wrote:
This was once true, but is out of date. I'd like to see a test
app. For example, how do you know you aren't getting
antialiasing? It may be that you just don't like the output. :-)
Well - NSImageInterpolationHigh and NSImageInterpolationNone
I am trying to get NSImageView to alias dropped images, but it
refuses. Just spent an hour looking and trying several variations to
no avail. Here's what I have done in a subclass of NSImageView.
-(void)drawRect:(NSRect)rect
{
[[NSGraphicsContext currentContext]
On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote:
On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke j...@mooseyard.com wrote:
On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote:
I am trying to get NSImageView to alias dropped images, but it
refuses.
Nitpick: you mean antialias. Aliasing is what
I have two synthesized properties - A and B. Whenever A changes I need
B to be updated to A.keypath. Is the correct way to do this to
override the synthesized setter of A like so?
-(void)setA:(id)value
{
A = value
[self setB:A.keypath];
}
Thanks.
On Feb 28, 2010, at 9:28 AM, Jean-Daniel Dupas wrote:
Le 28 févr. 2010 à 17:23, Chris Tracewell a écrit :
I have two synthesized properties - A and B. Whenever A changes I
need B to be updated to A.keypath. Is the correct way to do this to
override the synthesized setter of A like so
On Feb 28, 2010, at 9:26 AM, Jens Alfke wrote:
On Feb 28, 2010, at 8:23 AM, Chris Tracewell wrote:
I have two synthesized properties - A and B. Whenever A changes I
need B to be updated to A.keypath.
If B's value is entirely dependent upon A, you don't even need to
synthesize it — you
In a window displaying a widget object I am using an outlineview
bound to an NSTreeController as master view. When I notice the OV
selection change via outlineViewSelectionDidChange I filter a
tableview bound to an NSArrayController in one of two ways like so...
Method 1 :: use
On Jun 30, 2009, at 8:55 PM, Nick Zitzmann wrote:
On Jun 30, 2009, at 9:49 PM, Chris Tracewell wrote:
Finally, just to be sure to be sure to steer things back to my
original question... whether I dynamically link or statically link,
is there a manual anywhere that describes how to do
On Jul 1, 2009, at 2:18 PM, Shawn Erickson wrote:
Apple's API contract with application developers is at the library
level and not below that. If the SDK you compile against has the
libraries you need you should not attempt to statically link them into
your application. Additionally any
I've gotten libcurl linked and ready to use thanks to many
contributors from a previous post here. Does anyone have a snippet
code or link of an example of writing a callback function for say
CURLOPT_READFUNCTION?
Thank you
Chris
___
Chris Tracewell wrote:
I've gotten libcurl linked and ready to use thanks to many
contributors from a previous post here. Does anyone have a snippet
code or link of an example of writing a callback function for say
CURLOPT_READFUNCTION?
What have you tried?
For example, I found a number
On Jul 1, 2009, at 3:21 PM, Geoff Beier wrote:
On Wed, Jul 1, 2009 at 5:42 PM, Chris Tracewellch...@thinkcl.com
wrote:
I've gotten libcurl linked and ready to use thanks to many
contributors from
a previous post here. Does anyone have a snippet code or link of an
example
of writing a
29, 2009, at 4:12 PM, Chris Tracewell wrote:
The issue is that when using writeToFile my images have an extra 3
to 10 KB of size whether the image is really small or really big -
ie 5KB or 300KB. I am suspecting that my XCode generated images are
bigger for one of two reasons...
1) Adobe's
Steven,
Thanks for the link very nice info.
Rob,
Thanks - that is a huge help to get going with file meta data
manipulation!
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
So... call me an idiot, but I am lost as how to get libcurl into my
project. I can see libcurl.4.dylib libcurl.3.dylib on my hard drive
using spotlight. I have googled and googled and only found bits and
pieces here and there but nothing concrete, that is a 1,2,3
instruction on how to
On Jun 30, 2009, at 6:43 PM, Kyle Sluder wrote:
dylib means dynamic library...
Why do you need to link against libcurl statically? Not saying there
aren't valid use cases, but please present yours.
I guess I assumed that static linking is prefered as it would include
libcurl with the
--- Using GC ---
I am saving images to file from an NSImage dropped into an NSImageView
using JPEG as the file format via the code below.
-(IBAction)saveImages:(id)sender
{
TKProduct *theProduct = [[myProductArrayController selectedObjects]
objectAtIndex:0];
NSBitmapImageRep
to the Field Editor's keyDown: method, not TV. (for both
cases)
Is your File's Owner overriding textShouldEndEditing:? and
preventing the Field Editor from ending?
-raleigh
On Jun 17, 2009, at 4:03 PM, Chris Tracewell wrote:
I have a subclass of NSTableView which I have implemented keyDown
I have a subclass of NSTableView which I have implemented keyDown to
pick up delete and enter key presses. When the TV is bound to an array
controller it works perfectly, I can detect keyDowns for the above
mentioned and as a bonus when the user presses Enter or Return the
field editor
Thanks Kyle, I should've noted this is a non-document based app. That
said, I think your suggestion would imply to let the controller to
expose its own array property of the model's pipe-separated property?
Chris
On Jun 14, 2009, at 11:27 AM, Kyle Sluder wrote:
NSDocument is what's known
Ken,
Okay, that makes perfect sense. You are right, I was storing the pipe-
separated string of values to avoid needing another DB table for
single values that would not surpass more than 2 or 3 per record.
However, your and Kyle's response now make it obvious that the pipe-
string is not
While debugging I noticed that a custom object's set method is being
invoked twice. I have theViewController that is the files owner of my
Nib. theViewController has a myObject property. myObject is bound in
the Nib using an NSObjectController to the file's owner's myObject
property.
I am looking for the best method of turning off the visibility of an
NSButtonCell object for individual rows in an OutlineView/TableView. I
have an OutlineView that is bound to a TreeController. There are two
columns. In the last column I am using a checkbox cell that should
only be
];
}
return [tableColumn dataCellForRow:item];
}
Chris
On Apr 29, 2009, at 12:04 AM, Kyle Sluder wrote:
On Tue, Apr 28, 2009 at 1:12 PM, Chris Tracewell ch...@thinkcl.com
wrote:
I am looking for the best method of turning off the visibility of an
NSButtonCell object for individual
On Apr 29, 2009, at 8:13 AM, Ashley Clark wrote:
On Apr 28, 2009, at 12:12 PM, Chris Tracewell wrote:
I am looking for the best method of turning off the visibility of
an NSButtonCell object for individual rows in an OutlineView/
TableView. I have an OutlineView that is bound
On Apr 29, 2009, at 10:59 AM, Ashley Clark wrote:
On Apr 29, 2009, at 11:46 AM, Chris Tracewell wrote:
On Apr 29, 2009, at 8:13 AM, Ashley Clark wrote:
On Apr 28, 2009, at 12:12 PM, Chris Tracewell wrote:
I am looking for the best method of turning off the visibility of
an NSButtonCell
74 matches
Mail list logo