tem. I noticed 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 sugge
it goes 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...
>>
&g
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 m
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 dictionar
scard options if need be?
-CT
On Jun 4, 2013, at 7:31 PM, Graham Cox wrote:
>
> On 05/06/2013, at 11:56 AM, Chris Tracewell wrote:
>
>> Is this normal behavior? Thanks for the help.
>
>
> Probably. This method should just answer the question, not attempt to
> inte
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. T
On Mar 26, 2013, at 1:11 PM, Conrad Shultz 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 but you have made your class require a
> delegate conforming to the more speci
On Mar 26, 2013, at 12:38 PM, Quincey Morris
wrote:
> 2. Redeclare the "delegate" property:
>
> @interface TKOutlineView : NSOutlineView {}
> @property (nonatomic,readonly) id delegate;
> @end
>
> @implementation TKOutlineView
> @dynamic delegate;
> …
>
On Mar 26, 2013, at 12:38 PM, Quincey Morris
wrote:
> 2. Redeclare the "delegate" property:
>
> @interface TKOutlineView : NSOutlineView {}
> @property (nonatomic,readonly) id delegate;
> @end
>
> @implementation TKOutlineView
> @dynamic delegate;
> …
>
On Mar 25, 2013, at 7:33 PM, Conrad Shultz 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
> compile-time er
On Mar 25, 2013, at 1:54 PM, Conrad Shultz 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 inherits from
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
e
On Mar 22, 2013, at 3:27 PM, Quincey Morris
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
_
On Mar 22, 2013, at 1:51 PM, Quincey Morris
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 any more.
In this case this is a
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 18, 2013, at 12:15 PM, Chris Tracewell wrote:
>
>> 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
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 worked
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 r
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; t
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?
Tha
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
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 inset
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
{
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
>> d
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 "MySuperCl
> On Fri, Feb 11, 2011 at 5:14 PM, Chris Tracewell 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
> 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), NSTa
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
ers and returns NO, your 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
>>
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];
NSC
Oct 6, 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 wrote:
>> I have an NSImageView that accepts
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
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 *theImag
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
&g
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
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 inst
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 insta
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 *t
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 arrangedO
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 s
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?
>
>
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote:
> On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell 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...
>>
>>
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote:
> On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell 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...
>>
>>
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 metho
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
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 FW
Hi Joanna,
I'm still not getting anywhere. Any chance you could send me your test project
or post it somewhere? It would be very helpful.
Thanks
Chris
On May 12, 2010, at 2:39 AM, Joanna Carter wrote:
> Hi Chris
>
>> I am on OS X 10.6, XCode 3.2.2, GC and Core Data. I have a single entity a
I am on OS X 10.6, XCode 3.2.2, GC and Core Data. I have a single entity app
where I subclassed NSManagedObject so I can generate a "Job Ticket ID" for my
Job entity whenever a new Job is inserted. However I am getting an error in my
Log that is complaining that...
-[NSCFNumber count]: unrecogn
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 wrote:
>> Okay, so now that I flew off the
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
On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote:
On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke 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 creates t
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]
setImageInte
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
synthesiz
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
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.
_
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 setFilterP
On Jul 1, 2009, at 3:21 PM, Geoff Beier wrote:
On Wed, Jul 1, 2009 at 5:42 PM, 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 fun
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 numb
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
___
Cocoa-dev
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 librar
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 this
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 ex
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 "li
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 l
wrote:
On Jun 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.
--- 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 *th
urn
should go 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
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
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 t
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
I have many occasions when a model's property needs to be transformed
to another type for use in a view. In this case I have a string of
pipe separated values that need to be transformed into a
NSMutableArray, manipulated in the interface and then converted back
to the pipe separated string
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. Automa
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
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 to a
rn [NSTextFieldCell new];
}
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
wrote:
I am looking for the best method of turning off the visibility of an
NSButtonCell object fo
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 visible
78 matches
Mail list logo