Re: Custom initWithFrame?

2013-01-05 Thread Chris Hanson
s via KVC, but only supports setting properties of plist types. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.a

Re: Issue with Core Data Model

2013-01-12 Thread Chris Hanson
result. In the command line debugger, "print *someObject" will print someObject's ivars just as if you were dereferencing a struct*, as long as its real type (eg not "id") is known or has been cast to. -- Chris ___ Cocoa-d

Re: Issue with Core Data Model

2013-01-12 Thread Chris Hanson
you file a bug at bugreport.apple.com and post (or send me) the bug number? Thanks! > Can I delete the old models and leave just the mapping model files? The mapping models need to reference the data models, so no. You could conceivably rename the properties in all of the models and then re

NSOutlineView -reloadItem: vs insertItemsAtIndexes:inParent:withAnimation:

2013-02-03 Thread Chris Devereux
#x27;t seem to reproduce the issue. Has anyone noticed any differences in behaviour between these two ways of updating an outline view? Thanks Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: NSTask Explodes. Clueless.

2013-02-06 Thread Chris Hanson
specialized cases, you shouldn't need to figure out how to handle Mach exceptions in your own code. They signify extremely serious errors, ones you're almost certainly unlikely to be able to recover from. -- Chris ___ Cocoa-dev mailing

Re: NSTask Explodes. Clueless.

2013-02-06 Thread Chris Hanson
t is injecting itself into your app's address space - and into the address space of the forked subprocess, and trying to do something "on startup." What loaded libraries are listed in the crash dump? -- Chris ___ Cocoa-dev mailing

Re: How to read the deployment target of a .plugin?

2013-02-12 Thread Chris Hanson
existing applications stay binary-compatible. Applications built against a newer SDK, however, get the correct framework behavior. Since this is all determined by the controlling executable, you cannot get new behavior in a plug-in and old behavior in its host app (or vice versa) by building the

Re: How to read the deployment target of a .plugin?

2013-02-12 Thread Chris Hanson
ks in /,” which is in some ways like saying “don’t use an SDK.” It’s how we used to do things in the days before SDKs, but we’ve had SDKs now for around 10 years, so it’s time to make the switch. :) -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Thread safety of Bonjour Cocoa classes? (NSNetService, etc.)

2013-02-14 Thread Chris Parker
. NSNetService (and NSNetServiceBrowser) automatically schedules itself on the run loop of the thread it's being created on. If the run loop isn't being spun (e.g. on a thread created by detaching a pthread or an NSThread) then you won't get callbacks. .chris __

Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Chris Markle
shreporterInfo { __crashreporter_info__ = "TestApp 1.0.0"; } - (void)crash { char *addr = 0; *addr = 1; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end Anyone have any success using this

Re: Anyone able to get __crashreporter_info__ to work on iOS?

2013-02-27 Thread Chris Markle
Thanks for the followup Greg. Chris On Wed, Feb 27, 2013 at 5:05 PM, Greg Parker wrote: > On Feb 27, 2013, at 4:52 PM, Chris Markle wrote: >> Anyone have any success using this on technique to annotate crash >> reports on iOS? > > The iOS crash reporter does not supp

Quicklook and changing previewed image from table

2013-02-28 Thread Chris Paveglio
ow] windowController] togglePreviewPanel];     } else {         [super keyDown:theEvent];     } } I tried putting the refresh... call inside of the else block, but that didn't do anything. Would something go in my tableView, or the WindowController (which is where the panel is

Re: Quicklook and changing previewed image from table

2013-02-28 Thread Chris Paveglio
I think I figured something out. I used the table view's method for  tableViewSelectionDidChange and I could set the panel's previewed item as that changed. It works but might not be optimal. Thanks for any replies. Chris - Forwarded Message ----- From: Chris Paveglio To: Coco

ARC Release too soon

2013-03-16 Thread Chris Paveglio
7;t seem to leak), or how do I do something so ARC doesn't dealloc window controllers at the end of the function that fires them off? Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode

Re: ARC Release too soon

2013-03-16 Thread Chris Paveglio
Sure I totally understand that. My question is more of "what is the most elegant way to do it". Add them to an array? - Original Message - From: iain To: Chris Paveglio Cc: Cocoa Dev List Sent: Saturday, March 16, 2013 2:35 PM Subject: Re: ARC Release too soon On 16 Ma

How can modal window pass messages to its parent window?

2013-03-18 Thread Chris Tracewell
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

Re: How can modal window pass messages to its parent window?

2013-03-18 Thread Chris Tracewell
> 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

ARC Help

2013-03-22 Thread Chris Tracewell
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;

Re: ARC Help

2013-03-22 Thread Chris Tracewell
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

Re: ARC Help

2013-03-22 Thread Chris Tracewell
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 _

Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-25 Thread Chris Tracewell
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

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-25 Thread Chris Tracewell
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

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-26 Thread Chris Tracewell
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

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-26 Thread Chris Tracewell
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; > … >

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-26 Thread Chris Tracewell
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; > … >

Re: Custom Delegate - Using _delegate works but not delegate or [self delegate]

2013-03-26 Thread Chris Tracewell
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

Binding NSDictionary in NSArray into table view cell

2013-04-16 Thread Chris Paveglio
t the array controller is getting the values set, but just won't translate to showing in the cell view. Any other tips on special forms of input that the Model Key Path can take? Any good suggestions, examples, or reference to a tutorial on this? Thanks, Chris

NSTextField binding returns nil not empty string

2013-04-30 Thread Chris Paveglio
a value is removed from it, or can I force it to return an empty string? ---custom object (with ARC): @interface SpecialObject : NSObject @property(nonatomic, readwrite) NSString*headline; ... Thanks, Chris ___ Cocoa-dev mailing list (Coco

Re: crash in

2013-05-24 Thread Chris Ridd
me issue with a really big (or somehow mangled) integer? Try setting a breakpoint on strtoull_l and see what kind of arguments it is getting. Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-01 Thread Cianflone, Chris
160:707] writeToURL You don’t have permission to save the file “EmptyFile”. I get the same output for our 32-bit and 64-bit builds. Surely we must still be able to create temp files? Thanks, Chris _ Chris Cianflone Senior Software Engineer www.makemusic.com<

RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-02 Thread Cianflone, Chris
like we are not alone with problems like this. Fearing we won't be able to get rid of temp files in our mdimporter, does anyone have any other suggestions other than telling our users, sorry it doesn't work under 10.8. Thanks, Chris From: Kyl

RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-02 Thread Cianflone, Chris
<> Whoops, that should obviously say "if we can't get the temp files to work". Chris From: cocoa-dev-bounces+ccianflone=makemusic@lists.apple.com [cocoa-dev-bounces+ccianflone=makemusic@lists.apple.com] on behalf of Cian

OutlineView shouldSelectItem Being Called Twice

2013-06-04 Thread Chris Tracewell
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

RE: creating temp files or temp folders in standard temp file locations in mdimporter on Mac OS X 10.8.3

2013-06-05 Thread Cianflone, Chris
Just an FYI that we have opened a TSI on this. I'll let you know the details once we sort this out with Apple. Thanks, Chris From: cocoa-dev-bounces+ccianflone=makemusic@lists.apple.com [cocoa-dev-bounces+ccianflone=makemusic@lists.apple.co

Re: OutlineView shouldSelectItem Being Called Twice

2013-06-05 Thread Chris Tracewell
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

NSPopUpButtonCell - How To Get The Changed Value

2013-06-08 Thread Chris Tracewell
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

Re: Concurrent MOCs

2013-06-10 Thread Chris Hanson
) access, because that can fire or traverse faults. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Un

Carbon removal

2013-07-03 Thread Chris Paveglio
dlerUPP( AppEventHandler),                                  GetEventTypeCount( sAppEvents ),                                  sAppEvents, self, NULL ); --- Thanks for any help. Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

MODERATOR NOTE: Re: NSOutlineViews and Mountain Lion

2013-07-10 Thread Chris Hanson
for a supported way to disable animations system-wide should be filed at http://bugreport.apple.com rather than sent here. An example of a post that would be on-topic here is a question like "How can I make the NSOutlineView in my app not animate?" -- Chris -- your othe

MODERATOR: End of Thread (was Re: Apple Developer Update)

2013-07-26 Thread Chris Hanson
Sorry, but this is off-topic for the cocoa-dev list. Please keep discussion here to technical topics related to Cocoa development. To provide feedback to Developer Support, visit the contact page at <https://developer.apple.com/contact/>. Thanks. -- Chris, cocoa-dev co-mod

How To Bind The Enabled Property of NSPopUpButtonCell Menu Items

2013-08-02 Thread Chris Tracewell
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

Re: How To Bind The Enabled Property of NSPopUpButtonCell Menu Items

2013-08-02 Thread Chris Tracewell
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

Re: How To Bind The Enabled Property of NSPopUpButtonCell Menu Items

2013-08-02 Thread Chris Tracewell
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

MODERATOR: End of Thread (was Re: There must be a live human at Apple?)

2013-08-03 Thread Chris Hanson
Please do not continue this thread. As per the list guidelines, please keep discussion on the list to technical topics related to Cocoa development, and do not cross-post to multiple lists. -- Chris Hanson cocoa-dev co-mod ___ Cocoa-dev

Re: Is it possible to define class from interface builder?

2013-08-14 Thread Chris Hanson
oad the view controller from the named nib and embed its view within itself. -- Chris [1] User Defined Runtime Attributes are values set in Interface Builder that then get set on your objects via KVC when a nib file is loaded. They work in OS X 10.6 and iOS

Re: Setting NSObjectController's to file's owner

2008-05-15 Thread Chris Suter
ld set the content to an object that's contained by the file's owner, i.e. make the file's owner a controller object that owns the NSObjectController and has a reference/owns the content object. - Chris smime.p7s Description: S/MIME cryptographic signature

Re: Getting help...

2008-05-15 Thread Chris Woods
look correct. -- Chris Woods AIM: gnarrlybob MSN: [EMAIL PROTECTED] [EMAIL PROTECTED] Y!: cjwoodsGTalk: [EMAIL PROTECTED] http://bitspace.org/ ICQ: 21740987Skype: bitspace.org ___ Cocoa-dev mailing list (Coco

Filter Multidimensional Array?

2008-05-16 Thread Chris Purcell
I have created a multidimensional array by creating 3 NSArray's (call them childArray1, childArray2, childArray3) and them adding them to one NSArray (call it parentArray). I am using predicate to search out the array which finds the item I'm searching for. However, how I return the name

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread Chris Hanson
atterns and functionality as the frameworks helps ensure your own software will fit in well and be approachable by those who work on it next. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: NSApp with wrong _running count

2008-05-20 Thread Chris Hanson
the main thread, take a snapshot of some model-level state you need to modify. Pass that snapshot to an operation which manipulates it on some other thread. When that operation is done, the modified snapshot's changes are merged back on

Re: connections and the nib lifecycle

2008-05-21 Thread Chris Hanson
@", self, textField); That will log the description of the object itself, not just the value you care about. I suspect that you will see two different window controllers being created. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: connections and the nib lifecycle

2008-05-21 Thread Chris Hanson
larly magic here. I just suspect that in some cases, people have an "extra" window controller object in their nib file, in addition to the window controller that loads the nib file and acts as its owner (File's Owner). -- Chris __

Re: Cocoa Classes from C++?

2008-05-27 Thread Chris Hanson
ject's instance variables, or whether it will only call an objects property accessor/ mutator methods. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Alert Sheets hard wired in Interface Builder

2008-05-28 Thread Chris Hanson
replacement technology, and the replacements are defined practically right next to the deprecated functionality. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: warning: 'NSEntityDescription' may not respond to

2008-05-31 Thread Chris Hanson
PowerPC 32-bit than when building for Intel 64-bit; for one thing, the latter has differently-sized "int" and "long" types. Similarly, if you're building for PowerPC with a deployment target of 10.3, but for Intel with a deployment target of 10.4, you

Re: email

2008-05-31 Thread Chris Page
Script Editor, although even with event logging turned on that same mailbox only takes 30 seconds or just over 6 milliseconds per message. -- Chris Page - AppleScripter The other, other AppleScript Chris ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Loops in Objective C?

2008-05-31 Thread Chris Page
On May 26, 2008, at 12:20 PM, Nathan wrote: while(z=1); In addition to what others said, change that from assignment "=" to comparison "==". -- Chris Page - Text Editor An ASCII character walks into a bar. Bartender asks, “What’ll you have?” ASCII charac

Versioning MainMenu.nib

2008-06-03 Thread Chris Outwin
configuration. The only example I've found is AppeanceSample: a Carbon app which does not have NSMainNibFile MainMenu in the Info.plist. This key/value pair may be my problem. How do you dynamically select between two version of MainMenu.nib in a Cocoa document app? Thank you,

Re: Garbage collector vs variable lifetime

2008-06-07 Thread Chris Hanson
This won't happen because each message expression -- just as with function-call expressions -- is a sequence point. The compiler can't know what side-effects [data self] might have, so it can't re-order the invocation to elsewhere. -- Chris _

Re: Garbage collector vs variable lifetime

2008-06-08 Thread Chris Kane
I am never known to quail At the fury of a gale, And I'm never, never sick at C! Chorus: What, never? GC: No, never! Chorus: What, never? GC: Hardly ever! Chorus: He's hardly ever sick at C! [...] Chris __

Re: Garbage collector vs variable lifetime

2008-06-08 Thread Chris Hanson
On Jun 8, 2008, at 5:39 PM, John Engelhart wrote: On Jun 7, 2008, at 7:11 PM, Chris Hanson wrote: This won't happen because each message expression -- just as with function-call expressions -- is a sequence point. The compiler can't know what side-effects [data self] might h

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Chris Hanson
ently flawed or that it should be avoided: It works quite well both theoretically and in practice, and it supports the development of large and well-performing applications. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Chris Hanson
ed as an argument. When you passed it an object of a different type, even a subclass, you broke your promise to the compiler. This is simply wrong. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Chris Hanson
you send that aren't in the interface of the typed class, however. Thus you can say, perfectly validly: NSMutableArray *mutableArray = [[NSMutableArray alloc] init]; NSArray *array = mutableArray; This is perfectly fine. However, the compiler will give you a warning if you try to send a

Re: TDD/BDD testing methodologies?

2008-06-09 Thread Chris Hanson
On Jun 9, 2008, at 6:43 AM, Jonathan del Strother wrote: Take a look at SenTestingKit (and particularly Chris Hanson's excellent guide to setting it all up - http://chanson.livejournal.com/182472.html). Thanks for the kind words! I have a couple of additional posts on my weblog wh

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Chris Hanson
On Jun 9, 2008, at 11:17 AM, Hamish Allan wrote: On Mon, Jun 9, 2008 at 7:02 PM, Chris Hanson <[EMAIL PROTECTED]> wrote: The reason these kinds of methods have a return type of (id) is that there is no way to say "returns an object of the receiver's class." For exa

Re: 3rd Party Nonsense (was Re: Regular Expressions?)

2008-06-10 Thread Chris Ridd
would be to give the ICU folks a hand at writing whatever bits of gunk are required by Apple. Cheers, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Garbage collector vs variable lifetime

2008-06-11 Thread Chris Hanson
y a class cluster. You keep insisting that Objective-C is designed in and behaves in a way in which it simply does not. Please stop. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: creating and using a View xib

2008-06-11 Thread Chris Hanson
08/05/26/nsviewcontroller-the-new-c-in-mvc-pt-3-of-3/ And of course there's also some great information in the NSViewController documentation. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

Re: Issue with displaying URI prefixes on child elements using NSXML

2008-06-11 Thread Chris Suter
LElement *child = [NSXMLNode elementWithName:@"a:child" URI:@"http://www.tempurl.com "]; You can look-up the prefix using NSXMLElement’s resolvePrefixForNamespaceURI: method although you probably don’t need to do that. - Chris smime.p7s Description: S/MIME cryptographi

Re: argument checks

2008-06-12 Thread Chris Suter
longlongValue] won’t (on some architectures at least). - Chris smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: argument checks

2008-06-12 Thread Chris Suter
On 12/06/2008, at 5:29 PM, Graham Cox wrote: On 12 Jun 2008, at 5:03 pm, Chris Suter wrote: In the original example, myNum was being passed as a argument rather than having a message to sent to it and it’s often not safe to pass nil objects as arguments. Hmmm... well, what'

Re: Table View/Array Troubles

2008-06-13 Thread Chris Hanson
ou need to promote something that starts as a singleton to a non-singleton. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admin

Re: argument checks

2008-06-15 Thread Chris Suter
because passing nil arguments is not like sending messages to nil. - Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at

Re: looking for a crc code

2008-06-15 Thread Chris Suter
onfusing you is that you're using %i as the format specifier when you probably want to use %x, or strictly speaking, %lx since you’re passing in a long. - Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Issue with displaying URI prefixes on child elements using NSXML

2008-06-15 Thread Chris Suter
o include the prefix within the mark-up (the namespace can be dictated by the default) so there needs to be a way of indicating whether or not a prefix is included. You’re correct that you’d lose that information if you were to save and then load it back in (so long as

Re: getting accurate file modification time?

2008-06-17 Thread Chris Suter
. -- Chris smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: Quartz Composer file in IB

2008-06-20 Thread Chris Pavicich
IIRC, you need to link against Quartz. On Jun 20, 2008, at 12:46 PM, Omar Qazi wrote: On Jun 20, 2008, at 9:09 AM, Dan Uff wrote: Hi, I am trying to make a Cocoa application using a Quartz Composer file as output. Everything works fine when I Simulate the app in IB, but when I actually

Re: Race in Apple's NSTreeContoller/NSOutlineView

2008-06-21 Thread Chris Hanson
ate your model objects. Is this about how you have your bindings configured now, or are they set up differently? -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: Bindings Concept Question

2008-06-21 Thread Chris Hanson
"Data" class to "Person", the "arrayOfData" property to "people", and the "newData" local variable to "newPerson". Your code will read much more clearly that way: For example, you won't be misled to thinking that the under

Re: CoreData local and on server sync

2008-06-21 Thread Chris Hanson
e to do this, but at least you don't have to switch the application that runs on end-user systems completely away from Core Data to use hand-generated SQL. -- Chris PS - As always, if there are capabilities you'd like to see in Core Data or elsewhere in Cocoa, please file

Re: CoreData local and on server sync

2008-06-21 Thread Chris Hanson
one of the standard data synchronization algorithms in the desktop application. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

tag != pointer under GC (was Re: SetControlReference equivalent in NSControl?)

2008-06-25 Thread Chris Hanson
. If you want to refer to an object, you should really refer to it via a variable of appropriate type. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Core data question in multiwindow doc app

2008-06-27 Thread Chris Hanson
it knows about them? -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update you

Ask for help when encountering GC issues (was Re: Garbage Collection woes...)

2008-06-28 Thread Chris Hanson
ast, though: Objective-C Garbage Collection works quite well in Leopard, and applications large and small can use it quite effectively. I generally don't create new Cocoa projects these days without turning on Objective-C GC support. If you encounter

Output of NSHTTPCookieStorage to NSTableView

2008-06-28 Thread Chris Purcell
Hello, Not sure where my problem is I've tried a few things and no success. I am trying to output NSHTTPCookieStorage *cookies array to a table view. Whenever I call the objectValueForTableColumn:row method the app errors out, but if I leave it out the app launches displaying the correct

Re: Output of NSHTTPCookieStorage to NSTableView

2008-06-29 Thread Chris Purcell
Thank you for the reply. I think right now the simplest would be to convert the cookies array to an array of NSStrings. What would be the easiest way to do this? Thank you! On Jun 28, 2008, at 9:56 PM, Shawn Erickson wrote: On Sat, Jun 28, 2008 at 9:46 PM, Chris Purcell <[EM

Re: Thread safe reference counting

2008-06-29 Thread Chris Suter
n and -release are thread-safe. It's in the documentation somewhere. -- Chris smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Output of NSHTTPCookieStorage to NSTableView

2008-06-29 Thread Chris Purcell
ld be the easiest way to display each one of the attributes of the dictionary (version, name, value, etc.) in a separate column? How could I return just one of the attributes? Thank you! On Jun 29, 2008, at 12:56 PM, Jens Alfke wrote: On 29 Jun '08, at 9:39 AM, Chris Purcell wrote

Re: Output of NSHTTPCookieStorage to NSTableView

2008-07-01 Thread Chris Purcell
11:31 PM, Jens Alfke wrote: On 29 Jun '08, at 9:47 PM, Chris Purcell wrote: Thank you for the reply. I am a bit of a Cocoa newbie and I'm having trouble using the objectValueForTableColumn:. My NSTableView is only one column, but I would like to display all attributes of each k

newb- Overwriting a file or folder

2008-07-01 Thread Chris Paveglio
s/folders already there [removeFileAtPath:handler:]? Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admin

Re: Trying to display a static image on my window. Any tips would be great

2008-07-01 Thread Chris Paveglio
window, or into an NSImageView box. Maybe you don't even need a line of code for it. Chris >My image is set in my project in the resources folder and is called >logo.png and I hooked up the object to the NSImageView using IB. >Can't seem to get it to display. I believe I have

Re: NSDateComponents question

2008-07-01 Thread Chris Kane
On Jul 1, 2008, at 9:26, mmalc crawford wrote: Hi Chris, On Jul 1, 2008, at 9:10 AM, Christopher Kane wrote: The more subtle and serious issue is that Sunday in the current week might be in the previous Month (so, Day < Weekday), or even previous Year, so setting the Day to a negat

Best way to handle background i/o and notify main UI thread

2008-07-01 Thread Chris Irvine
ngoing task. I don't think I need a queue of 1. NSThread & performSelectorOnMainThread: - Doesn't seem as opaque and flexible as NSFileHandle style API with notifications. This is what I'm leaning toward at the moment. Something else I'm not thinking of? Suggestions? -Chri

Re: Best way to handle background i/o and notify main UI thread

2008-07-01 Thread Chris Irvine
On Jul 1, 2008, at 3:17 PM, Douglas Davidson wrote: On Jul 1, 2008, at 3:11 PM, Chris Irvine wrote: I've been doing a lot of reading about this, but I still don't feel like I have a concise answer. I'm building a small suite of applications that all will all share simi

Re: Cocoa says not KVC compliant

2008-07-02 Thread Chris Suter
Pointers that are not objects are not supported by KVC. Read <http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/DataTypes.html#//apple_ref/doc/uid/20002171-BAJEAIEE > --Chris smime.p7s Description: S/MIME cryptog

Does this caution need fixed? (newb)

2008-07-03 Thread Chris Paveglio
nment from distinct Objective C type", but the code works. How important is it to fix that? Also, should my code be "caution free" as a sign of clean coding or can some cautions that don't affect functionality be dismissed? Thanks, Chr

Re: Does this caution need fixed? (newb)

2008-07-03 Thread Chris Paveglio
nent:[myPrefs objectAtIndex:i]]; } Thinking about it, do I need the alloc and init commands? Sometimes I am unsure about what needs alloc or init versus what I can just declare as a variable without doing that. Thanks for your help! Chris _

Re: Does this caution need fixed? (newb)

2008-07-03 Thread Chris Paveglio
computer science in college (actually I was an art major) so learning all the details of C/Obj-C is slow going. Thanks again! I hope you'll all bear with me until I don't have to preface with (newb). :-) Chris ps. Working

Re: garbage collection and NSConnection

2008-07-04 Thread Chris Hanson
ferences to it -- no matter when that is. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Uns

<    1   2   3   4   5   6   7   8   9   10   >