NSTreeController/OutlineView w/CoreData Bindings multiple selection?

2010-01-04 Thread Rick Mann
I have an NSTreeController and outline view displaying a hierarchy of Group objects. This works fine. The NSTreeController is bound to the managed object context, and uses a fetch predicate of parent == nil. It won't let me select more than one row. Is it simply not possible to do so? TIA,

Re: NS_INLINE and obj = nil;?

2010-01-04 Thread Andy Lee
On Jan 3, 2010, at 5:26 PM, Scott Ribe wrote: Easily fixed: #define GDRelease(x) [(x) release], (x) = nil, (void)0 Not really a good fix; compiler error is preferable to tweaking your macro to allow compilation of nonsense ;-) Actually this causes a compiler error if you try if

Simple Core Data problem - zombie objects left in store

2010-01-04 Thread Ken Tabb
Hi folks Happy New Year, I'm not sure why this is a problem as I've done this before now, so can't quite see the problem. This is all on 10.6.2 in a Core Data app (i.e. non-document-based). Despite re-reading the Core Data Programming Topics Marcus Zarra's (excellent) book, I'm stumped

NSDate without time portion

2010-01-04 Thread Brian Bruinewoud
Hi All, What's the best way to get an NSDate object for 'today' such that the time is 00:00:00 (or any other constant). I not interested in the time, I only care about the year-month-day, but I do need the the hours-minutes-seconds to be the same on all dates so that I can compare the dates.

IGNORE ME: Simple Core Data problem - zombie objects left in store

2010-01-04 Thread Tabb, Ken
Hi again folks, of course, the IB Deletes objects on remove option for the People array controller had something to do with it... sigh... Sorry for filling up your Inboxes... Ken On 4 Jan 2010, at 10:14, Tabb, Ken wrote: Hi folks Happy New Year, I'm not sure why this is a problem as

Re: Need font anti aliasing techniques

2010-01-04 Thread Matthew Lindfield Seager
On Monday, January 4, 2010, padmakumar padmaku...@tataelxsi.co.in wrote: What are all the ways we can programmatically make anti aliasing techniques for texts displayed in NSTextField. regards PK Try this: http://tinyurl.com/anel Or this is shorter easier to read:

Implementing search field in core-data app

2010-01-04 Thread Martin Hewitson
Dear list, I have a fairly basic core-data model with a set of Category entities, each category contains then a set of Item entities. What I want to do is implement a search field which searches all items from all categories - something like the searching is done in Mail.app. I'm not really

How to find that my app is running under same security session in fast user switch

2010-01-04 Thread Parimal Das
Hi all My app can run multiple instances of itself for different users. I want to check that in case of a fast user switch, If my app is requesting data from port of other user, then i should block this attempt. one suggested approach is to use Security/AuthSession.h which has

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Charles Jenkins
Thank you to all who offered your expertise! Whatta dumb mistake! I thought all objects were retained once when created, not auto-released. Gah! I've been programming for 20+ years--mostly with C++ and C#. Cocoa-ObjC has the steepest learning curve of any programming I have ever done. It

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Paul Sanders
Essential reading: http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html The 'memory management rules' are not complex. A much bigger problem is avoiding memory leaks. Paul Sanders. - Original Message - From: Charles Jenkins

Re: Setting NSWindow titlebar height

2010-01-04 Thread Jeremy Pereira
On 3 Jan 2010, at 19:41, PCWiz wrote: I have a window that looks like this right now: http://img22.imageshack.us/img22/2953/screenshot20100103at123.png I've removed the titlebar buttons and everything Why? How does the user make the Window go away/hide without the title bar buttons?

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Charles Jenkins
On 2010-01-03 00:08, Eric Smith wrote: Correct, do not release the array. If you don't create it with init, or retain it, then you should not release it. Eric, thank you for stating that rule. It should be easy enough to remember and help me avoid this problem in the future. In my

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Kai Brüning
On 4.1.2010, at 13:44, Charles Jenkins wrote: Thank you to all who offered your expertise! Whatta dumb mistake! I thought all objects were retained once when created, not auto-released. Gah! I've been programming for 20+ years--mostly with C++ and C#. Cocoa-ObjC has the steepest

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Graham Cox
On 04/01/2010, at 11:58 PM, Charles Jenkins wrote: On 2010-01-03 00:08, Eric Smith wrote: Correct, do not release the array. If you don't create it with init, or retain it, then you should not release it. Eric, thank you for stating that rule. It should be easy enough to remember and

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Roland King
On 04-Jan-2010, at 8:58 PM, Charles Jenkins wrote: On 2010-01-03 00:08, Eric Smith wrote: Correct, do not release the array. If you don't create it with init, or retain it, then you should not release it. Eric, thank you for stating that rule. It should be easy enough to remember and

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Kai Brüning
On 4.1.2010, at 13:58, Charles Jenkins wrote: On 2010-01-03 00:08, Eric Smith wrote: Correct, do not release the array. If you don't create it with init, or retain it, then you should not release it. Eric, thank you for stating that rule. It should be easy enough to remember and help

Animating an NSView in from Below.

2010-01-04 Thread Joshua Garnham
I know there are tutorials like Marcus Zarras which shows how to change from one view to another, but I would like to animate in a view which isn't going to replace another view. Here's what I have at the moment:http://drp.ly/9w86s (Test App). The view seems to slide in but the view isn't actually

Re: iPhone: load cell from XIB slows down tableview?

2010-01-04 Thread Damien Cooke
John, I had a similar issue. For me the problem turned out to be that the reusableId was not being set as it was imported from the nib. Thus the call dequeue one was always retuning nil. I solved this by building the cell by hand and calling the correct init method so the reusableid was

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Dave Keck
Does anyone else find XCode extremely buggy? I have to continually close and reopen my editing window because the code display gets trashed and appears to scramble my code. It doesn't really change the source code file; it just makes it look as if I've randomly gone through the file deleting

Re: Question about garbage collection

2010-01-04 Thread Quincey Morris
On Jan 3, 2010, at 18:21, Ben Haller wrote: Bill, I for one would like to hear a bit more about this. What has changed in SL? Why would it ever be possible to outrun the collector? If the limit of memory is being reached, can't it always just do an immediate, synchronous collection

Re: Animating an NSView in from Below.

2010-01-04 Thread Graham Cox
On 05/01/2010, at 12:16 AM, Joshua Garnham wrote: I know there are tutorials like Marcus Zarras which shows how to change from one view to another, but I would like to animate in a view which isn't going to replace another view. Here's what I have at the moment:http://drp.ly/9w86s (Test

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Paul Bruneau
On Jan 4, 2010, at 7:58 AM, Charles Jenkins wrote: On 2010-01-03 00:08, Eric Smith wrote: Correct, do not release the array. If you don't create it with init, or retain it, then you should not release it. Eric, thank you for stating that rule. It should be easy enough to remember and

Re: Animating an NSView in from Below.

2010-01-04 Thread Florian Soenens
Joshua, you are only setting the frames of your views but you never add secondView as a subview of your window. Florian. On 04 Jan 2010, at 14:16, Joshua Garnham wrote: I know there are tutorials like Marcus Zarras which shows how to change from one view to another, but I would like to

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Paul Sanders
Here's another useful link: http://www.cocoadev.com/index.pl?NSZombieEnabled I find enabling 'zombies' to be an excellent way of detecting an 'over-released' object without getting horrible / delayed / cryptic crashes. I aways have them enabled during debugging. Just a note of caution

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Jack Carbaugh
This has happened to me often. On Jan 4, 2010, at 8:24 AM, Dave Keck wrote: Does anyone else find XCode extremely buggy? I have to continually close and reopen my editing window because the code display gets trashed and appears to scramble my code. It doesn't really change the source code

Re: NSDate without time portion

2010-01-04 Thread Quincey Morris
On Jan 4, 2010, at 02:26, Brian Bruinewoud wrote: What's the best way to get an NSDate object for 'today' such that the time is 00:00:00 (or any other constant). I not interested in the time, I only care about the year-month-day, but I do need the the hours-minutes-seconds to be the same on

Re: iPhone: load cell from XIB slows down tableview?

2010-01-04 Thread Tony Ingraldi
On Jan 4, 2010, at 12:03 AM, John Michael Zorko wrote: I'm trying to determine why my tableviews scroll so jerkily on non-3GS devices. The datasource only has perhaps 170 records, so I think it may have something to do with how i'm instantiating the cells in

Re: NSTreeController/OutlineView w/CoreData Bindings multiple selection?

2010-01-04 Thread Sean McBride
Rick Mann (rm...@latencyzero.com) on 2010-01-04 4:08 AM said: I have an NSTreeController and outline view displaying a hierarchy of Group objects. This works fine. The NSTreeController is bound to the managed object context, and uses a fetch predicate of parent == nil. It won't let me select

Retain Count of NSConnection object

2010-01-04 Thread Alexander Reichstadt
Hi and happy new year, I have a server and a client app using NSConnection. All seems to work fine. The client is doing something like [(NSDistantObject *)aServer doThis] while the server object has a method - (oneway void)doThis { NSLog(@do something); } After calling this method,

Re: Retain Count of NSConnection object

2010-01-04 Thread Sherm Pendley
On Mon, Jan 4, 2010 at 10:34 AM, Alexander Reichstadt l...@mac.com wrote: I can hardly expect for this to be a Cocoa-bug but imagine I am misunderstanding something. Can anyone help and please tell me where I am erring here? You're expecting -retainCount to return a useful number. It doesn't.

Re: iPhone: load cell from XIB slows down tableview?

2010-01-04 Thread John Michael Zorko
Tony, Have you verified that you've set the Identifier for the custom cell in the XIB to match the above cellID? If they don't match, you'll end up loading the XIB for every row in the table view. If things are set up properly, the XIB will be loaded once for each visible row on the

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Alex Kac
I don’t seem to have any issues with XCode at all beyond not being able to hover-inspect some vars (I just use po on the output window instead). On Jan 4, 2010, at 5:58 AM, Charles Jenkins wrote: On 2010-01-03 00:08, Eric Smith wrote: Correct, do not release the array. If you don't create it

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Alex Kac
Normally I’d agree, but people understand things in different ways. I found reading Aaron Hillegass book on Cocoa far more understandable than Apple’s docs. When I first started I used Apple’s docs as my reference and Aaron’s book as a way to understand it. Now I just use the Apple docs, but

Re: exposeBinding:

2010-01-04 Thread Jerry Krinock
On 2010 Jan 03, at 14:56, Rick Mann wrote: Is -exposeBinding: only necessary when implementing an IB plug-in? Or is it required to make bind: work at all (on a custom object)? It is required to make bind: work at all (on a custom object). Put it in your +initialize method.

Re: NSBezierPath linewidth not correct

2010-01-04 Thread Alastair Houghton
On 2 Jan 2010, at 23:42, Rob Keniger wrote: On 02/01/2010, at 8:58 PM, Gustavo Pizano wrote: No worries, I modify it and in fact it does work, but the background images will display a .5 gap between along the horizon between the images that conform the background, so I will put just a .5

Re: Question about garbage collection

2010-01-04 Thread Bill Bumgarner
On Jan 4, 2010, at 5:31 AM, Quincey Morris wrote: On Jan 3, 2010, at 18:21, Ben Haller wrote: Bill, I for one would like to hear a bit more about this. What has changed in SL? Why would it ever be possible to outrun the collector? If the limit of memory is being reached, can't it

Re: NSTreeController/OutlineView w/CoreData Bindings multiple selection?

2010-01-04 Thread Rick Mann
On Jan 4, 2010, at 06:21:47, Sean McBride wrote: Rick Mann (rm...@latencyzero.com) on 2010-01-04 4:08 AM said: I have an NSTreeController and outline view displaying a hierarchy of Group objects. This works fine. The NSTreeController is bound to the managed object context, and uses a fetch

Pasteboard file promises under 10.6

2010-01-04 Thread Frank Illenberger
Does anybody know how to get file promises working with the new pasteboard API in Snow Leopard? When the dragging session in started, I put the following item onto the provided pasteboard: NSPasteboardItem* item = [[NSPasteboardItem alloc] init]; [item setDataProvider:self

Re: Custom NSFormatter classes

2010-01-04 Thread Henri Häkkinen
Hello again Patric and others. I have another question related to the previous one. I now have the following things: * Foo model class * FooFormatter class which converts Foo objects into string representations * User interface with NSTableView which uses the FooFormatter in a text field cell

Re: Pasteboard file promises under 10.6

2010-01-04 Thread Nick Zitzmann
On Jan 4, 2010, at 11:06 AM, Frank Illenberger wrote: Does anybody know how to get file promises working with the new pasteboard API in Snow Leopard? You can't. Every version of Mac OS X to date treats file promise pasteboards as being different from all other kinds of pasteboards, and the

iPhone Creating a months view

2010-01-04 Thread Eric E. Dolecki
I am creating an iPhone view that has 12 months of views in it starting with January. For each subview (month) I need to get the 1st day of the month (which calendar day it falls on as an int). For instance Jan 2010 begins on a Friday (int of 5 I assume). This way I can properly populate the

Re: iPhone Creating a months view

2010-01-04 Thread Wyatt Webb
On Jan 4, 2010, at 10:35 AM, Eric E. Dolecki wrote: I am creating an iPhone view that has 12 months of views in it starting with January. For each subview (month) I need to get the 1st day of the month (which calendar day it falls on as an int). For instance Jan 2010 begins on a Friday

Re: iPhone Creating a months view

2010-01-04 Thread Alex Kac
One caution about using NSDateComponents, NSCalendar, etc… is that they are considerably slower than the CF date code. We took code written using the NS versions and rewrote them as CF version and the performance was easily 10x. Of course it was mostly noticeable only in loops where we were

Re: iPhone Creating a months view

2010-01-04 Thread Nick Zitzmann
On Jan 4, 2010, at 11:35 AM, Eric E. Dolecki wrote: I am creating an iPhone view that has 12 months of views in it starting with January. Don't make assumptions about calendars unless you are absolutely sure you can get away with them, e.g. every calendar currently in use in the world uses

Getting children of all subnodes of a selected node in NSTreeController?

2010-01-04 Thread Rick Mann
I now have a working Group selection UI, where you can choose one or more groups and see the list of items belonging to those groups in another pane. Now, I'd like to extend things a bit so that if a group with subgroups is selected, all of the items belonging to that group, and to all of its

Re: iPhone Creating a months view

2010-01-04 Thread Eric E. Dolecki
Thanks for the insights. Currently I have a chunk of code in a loop that looks like this: *//'pointer' increments in a loop - so create a date for each month of the year, c defined outside the loop* int currentYear = [comp year]; NSDateComponents *components = [[[NSDateComponents alloc]init]

GC memory leak - what is it?

2010-01-04 Thread jonat...@mugginsoft.com
A recent post mentioned the concept of GC memory leakage. How is is this defined? Is it merely a failure to nil out a rooted reference? man heap(1) makes reference to over-rooted objects. Are these merely objects with more than one root reference or is something else afoot? Regards Jonathan

Re: exposeBinding:

2010-01-04 Thread Kyle Sluder
On Mon, Jan 4, 2010 at 8:30 AM, Jerry Krinock je...@ieee.org wrote: It is required to make bind: work at all (on a custom object).  Put it in your +initialize method. Eh? It is not required at all. --Kyle Sluder ___ Cocoa-dev mailing list

Re: GC memory leak - what is it?

2010-01-04 Thread Bill Bumgarner
On Jan 4, 2010, at 11:50 AM, jonat...@mugginsoft.com wrote: A recent post mentioned the concept of GC memory leakage. How is is this defined? Is it merely a failure to nil out a rooted reference? man heap(1) makes reference to over-rooted objects. Are these merely objects with more than

Re: GC memory leak - what is it?

2010-01-04 Thread Rippit the Ogg Frog
jonat...@mugginsoft.com wrote: A recent post mentioned the concept of GC memory leakage. How is is this defined? Is it merely a failure to nil out a rooted reference? Yes. If you hold a reference to memory you don't need anymore, you have a leak. I've gotten into huge flamewars over

Re: Custom NSFormatter classes

2010-01-04 Thread Patrick Mau
Hallo Henri I have updated the Formatter to include a context menu for the TableView. http://public.me.com/pmau Since you don't know the target, you could wire them up to the FirstResponder object in IB. Look at the inspector panel for FirstResponder, you can add actions there. Since the

Re: Custom NSFormatter classes

2010-01-04 Thread Henri Häkkinen
Thanks for your answer again, Patrick. By the way, what is the general opinion about the Cocoa Bindings technology among Mac developers? I have been looking into it lately and while it looks very neat I have found it troublesome to actually put it into practical use. I am contemplating whether

Re: iPhone Creating a months view

2010-01-04 Thread Henry McGilton (Boulevardier)
On Jan 4, 2010, at 11:17 AM, Nick Zitzmann wrote: On Jan 4, 2010, at 11:35 AM, Eric E. Dolecki wrote: I am creating an iPhone view that has 12 months of views in it starting with January. Don't make assumptions about calendars unless you are absolutely sure you can get away with

Re: iPhone Creating a months view

2010-01-04 Thread Nick Zitzmann
On Jan 4, 2010, at 2:17 PM, Henry McGilton (Boulevardier) wrote: And NSCalendarDate appears to have vanished from Mac OS X Foundation as well . . . It's still there; it's just been deprecated because Apple wants to push the NSCalendar and NSDateComponents classes due to their superior

Re: Custom NSFormatter classes

2010-01-04 Thread Matthew Lindfield Seager
On Tuesday, January 5, 2010, Henri Häkkinen wrote: Thanks for your answer again, Patrick. By the way, what is the general opinion about the Cocoa Bindings technology among Mac developers? Don't confuse my uninformed opinion with the general opinion but it appears to be an 80% technology...

Re: GC memory leak - what is it?

2010-01-04 Thread jonat...@mugginsoft.com
On 4 Jan 2010, at 20:39, Bill Bumgarner wrote: It isn't so much thinking of it as a reference that needs to be nil'd out as much as it is a need to properly disconnect a subgraph of objects from the live object graph in an application such that the subgraph is collected. That is, nil'ing

Turn off font hinting?

2010-01-04 Thread Sander Stoks
Hello all, I wrote some code to draw an NSString rotated by an arbitrary angle, which can be manipulated interactively. The results are surprisingly bad (compared to how good font rendering is in general on the Mac). Most notably, the character positions jump around in whole pixel increments

Looking up a NSString constant at runtime

2010-01-04 Thread David Alter
Is there a way to lookup what and NString constant is at runtime? I want to know what the string is for a given constant. For example I would like to pass in the constant name ( i.e. NSDeviceResolution) and get back the NSString that constant represents. I know in this case that the Constant name

Re: Looking up a NSString constant at runtime

2010-01-04 Thread Oftenwrong Soong
On Mon, Jan 4, 2010 at 4:56 PM, David Alter alterconsult...@gmail.com wrote: Is there a way to lookup what and NString constant is at runtime? Have you tried [NSDeviceResolution description] or [NSString stringWithString:NSDeviceResolution] ? Soong

Do I need to download both XCode for both Mac iPhone

2010-01-04 Thread Jan Erik Moström
Newbie Q: I've been playing with the XCode env for iPhone for a few weeks and was thinking about doing some OS X dev but do I need to download the whole OS X version of XCode or is there some smaller download? - jem -- Jan Erik Moström http://mostrom.eu

Re: Revolving scoreboard

2010-01-04 Thread Nick Paulson
Take a look at the first post in the following link: http://www.cocoadev.com/index.pl?CoreAnimation Basically, you just have the view's animator as a receiver rather than the view itself. This will automatically do the default animations for you. --Nick Paulson On Jan 4, 2010, at 1:55 AM,

Need help regarding sleep notification

2010-01-04 Thread Poonam Virupaxi Shigihalli
Hi, I am listening to the notifications NSWorkspaceWillSleepNotification and NSWorkspaceDidWakeNotification in my code. I am getting these notifications, when user selects sleep from system menu. But when system goes to sleep, after being idle for some duration, I am not getting these

Re: Do I need to download both XCode for both Mac iPhone

2010-01-04 Thread Claus Guttesen
Newbie Q: I've been playing with the XCode env for iPhone for a few weeks and was thinking about doing some OS X dev but do I need to download the whole OS X version of XCode or is there some smaller download? You need xcode + iphone-sdk, so yes, you need both. :) -- regards Claus When

Re: Why is [NSArray arrayWithObjects:] failing for me?

2010-01-04 Thread Scott Anguish
that’s fine, Aaron’s book is an excellent source. The issue is more that the memory management rules shouldn’t be paraphrased here. Too easy for people to make errors and confuse users. On Jan 4, 2010, at 11:24 AM, Alex Kac wrote: Normally I’d agree, but people understand things in different

Re: GC memory leak - what is it?

2010-01-04 Thread Oftenwrong Soong
On Mon, January 4, 2010 12:39:22 PM Bill Bumgarner b...@mac.com wrote: It isn't so much thinking of it as a reference that needs to be nil'd out as much as it is a need to properly disconnect a subgraph of objects from the live object graph in an application such that the subgraph is

Re: Do I need to download both XCode for both Mac iPhone

2010-01-04 Thread Jean-Daniel Dupas
Le 4 janv. 2010 à 23:23, Rick Mann a écrit : On Jan 4, 2010, at 01:41:56, Jan Erik Moström wrote: Newbie Q: I've been playing with the XCode env for iPhone for a few weeks and was thinking about doing some OS X dev but do I need to download the whole OS X version of XCode or is there

Re: Looking up a NSString constant at runtime

2010-01-04 Thread Scott Ribe
I think you're confused: the constant *is* the string; there is no lookup to perform. You can do anything with it that you would do with any other non-mutable string: log it, setStringValue on a text field in the user interface, setMessageText in an alert, and so on. -- Scott Ribe

Re: Do I need to download both XCode for both Mac iPhone

2010-01-04 Thread Clark Cox
On Mon, Jan 4, 2010 at 1:41 AM, Jan Erik Moström li...@mostrom.pp.se wrote: Newbie Q: I've been playing with the XCode env for iPhone for a few weeks and was thinking about doing some OS X dev but do I need to download the whole OS X version of XCode or is there some smaller download? The

Re: Need font anti aliasing techniques

2010-01-04 Thread Chris Hanson
On Jan 3, 2010, at 8:33 PM, padmakumar wrote: What are all the ways we can programmatically make anti aliasing techniques for texts displayed in NSTextField. What kind of results are you trying to achieve? Mac OS X has a standard antialiasing mechanism in its font rendering; normally, just

Re: Looking up a NSString constant at runtime

2010-01-04 Thread David Alter
This would work for finding out what the name is as well as logging it. What if I'm getting a string passed in that is the name of the constant and I want to return the constants string value. Is there a way to do that? something like... NSString * constValue = [SomeToolToLookupConstants

Re: Looking up a NSString constant at runtime

2010-01-04 Thread Nick Paulson
The constant *is* an NSString; essentially you could do: NSString *constValue = NSDeviceResolution; Though, that may be a little redundant. --Nick Paulson On Jan 4, 2010, at 6:09 PM, David Alter wrote: This would work for finding out what the name is as well as logging it. What if I'm

Re: help a brother out?

2010-01-04 Thread PCWiz
Hi Ryan, Long time no talk, but distros aren't a good way to go with Snow Leopard. Retail install is easier and better. Independent Cocoa Developer, Macatomy Software http://macatomy.com On 2010-01-04, at 12:31 PM, Ryan R. Moos wrote: any chance you might know a rapidshare link for OS X

Re: Turn off font hinting?

2010-01-04 Thread PCWiz
One idea would be to draw the text into the view at the normal angle, then convert the contents of the view into an NSImage, put that into an NSImageView and rotate that instead. I'm not sure how good of a solution this is, or if there is a better solution, but I've found that manipulating

Re: GC memory leak - what is it?

2010-01-04 Thread Chris Hanson
On Jan 4, 2010, at 2:27 PM, Oftenwrong Soong wrote: According to the docs, the collector scans all of your objects to determine what needs to be deallocated. But in performing this scan, how does it know which bits in your object are pointers to other objects and which bits are just data?

Re: Turn off font hinting?

2010-01-04 Thread Jens Alfke
On Jan 4, 2010, at 1:47 PM, Sander Stoks wrote: I wrote some code to draw an NSString rotated by an arbitrary angle, which can be manipulated interactively. The results are surprisingly bad (compared to how good font rendering is in general on the Mac). Most notably, the character

Re: Looking up a NSString constant at runtime

2010-01-04 Thread Scott Ribe
What if I'm getting a string passed in that is the name of the constant and I want to return the constants string value. Is there a way to do that? This is C, and just as with variables, the names are not there at runtime. If you really need to do this, you'll have to build your own lookup

Re: GC memory leak - what is it?

2010-01-04 Thread Bill Bumgarner
On Jan 4, 2010, at 1:39 PM, jonat...@mugginsoft.com wrote: How can a multiple stack root occur? Is this just saying that the same object is referenced by multiple stack allocated pointers at the time that the sample was taken? That is correct; the object may be referenced by multiple local

Re: Bold Braille

2010-01-04 Thread Martin Wierschin
In my braille app, the font Apple Braille looks kind of wimpy when printed. Some people say it's hard to read. I thought I'd try making it bold, but for some reason, Apple Braille does not go bold in any app I've tried. ... 3) Is there another way to make my braille look heavier? You

Exception thrown in _NXCreateWindow: reference offset exceeds bounds

2010-01-04 Thread slasktrattena...@gmail.com
Hi, I just got this report about a crash on launch, while loading the nib. Any ideas what the problem might be? I'm clueless. Thanks! 2010-01-05 10:44:39 +1100: CGSResolveShmemReference : window.RO : Reference offset (37632) exceeds bounds (32768) on shmem obj 0x60b 2010-01-05 10:44:39 +1100:

Re: Looking up a NSString constant at runtime

2010-01-04 Thread David Alter
I can open a library and lookup a function by name using dlsym. These constants are EXTERN. It seams there should be away to look these up as well. -dave On Mon, Jan 4, 2010 at 3:39 PM, Scott Ribe scott_r...@killerbytes.comwrote: What if I'm getting a string passed in that is the name of the

Re: Looking up a NSString constant at runtime

2010-01-04 Thread Graham Cox
On 05/01/2010, at 11:03 AM, David Alter wrote: I can open a library and lookup a function by name using dlsym. These constants are EXTERN. It seams there should be away to look these up as well. Functions are not the same, because a function's name is a necessary part of the runtime. A

[MEET] Toronto Area Cocoa WebObjects Developer Group - January 26

2010-01-04 Thread Karl Moskowski
The next meeting of tacow/Toronto CocoaHeads will be held on Tuesday, January 26 at 6:30 PM at Ryerson University. Note that this meeting is two weeks later than usual; also, we're no longer using the same meeting room. Up-to-date info and directions are available at

Re: Re: NSSearchField and bindings question

2010-01-04 Thread lorenzo7620
On Jan 4, 2010 5:15pm, Saurabh Sharan saurabh.sha...@isharan.com wrote: You're not alone -- happened to me too. Though, when I downloaded the code from pragprog.com, it worked. - Saurabh On Sun, Jan 3, 2010 at 10:11 PM, lorenzo7...@gmail.com wrote: I'm going the Zarra book, Core Data

Re: Looking up a NSString constant at runtime

2010-01-04 Thread Mark Ritchie
On 4/Jan/2010, at 4:24 PM, glenn andreas wrote: CFBundle has routines for looking up both functions and data by name. It does require you figure out what framework the symbol comes from (and then get the corresponding CFBundle), but it is doable. Cool, I didn't know that CFBundle exposed

Question about multiple MOCs on shared PSC

2010-01-04 Thread Rick Mann
So, I thought I could create a new NSManagedObjectContext given the NSPersistentStoreCoordinator of a different MOC, and that it would be a completely blank context. But it turns out fetches for objects will fetch anything out of the store(s). This makes sense, but isn't what I wanted. I

Re: Looking up a NSString constant at runtime

2010-01-04 Thread Scott Ribe
Ah yes, external symbols in a dynamic library--you do have some chance of looking them up at run time ;-) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list

NSViewController view swapping where to put the buttons at?

2010-01-04 Thread Dan
Hi all, My end goal is to have an interface that swaps views and performs actions at each of those views, with the ability to go back and forth over those views. Not sure how to do this I found something similar to what I want to do in View swapping using a view controller. So I have a Main

[moderator] Re: help a brother out?

2010-01-04 Thread Scott Anguish
Any discussion of copying will result in removal from the list and Apple WWDR and legal departments being notified. [moderator] On Jan 4, 2010, at 6:14 PM, PCWiz wrote: Hi Ryan, Long time no talk, but distros aren't a good way to go with Snow Leopard. Retail install is easier and

iPhone: NSXMLParser problems

2010-01-04 Thread Eric E. Dolecki
I am an XML parsing noob, but I do it all the time in AS3, etc. I have the following methods... I was expecting something to be called in the delegate methods, but I don't get anything. Shouldn't I be getting something... although the Yahoo! API is supposed to return XML, it's really a weird

Re: NSViewController view swapping where to put the buttons at?

2010-01-04 Thread Graham Cox
On 05/01/2010, at 11:45 AM, Dan wrote: My end goal is to have an interface that swaps views and performs actions at each of those views, with the ability to go back and forth over those views. Not sure how to do this I found something similar to what I want to do in View swapping using a

Weird issue with BDAlias/FSRefs and the case of filesystem paths

2010-01-04 Thread Rob Keniger
Hi everyone, I'm using the BDAlias wrapper (http://github.com/rentzsch/bdalias) for handling alias records so that my app manages files better when they're moved or renamed. Things were working fine but recently, for no apparent reason, any alias that points to a file in the Users folder

Getting warning when saving merged MOC

2010-01-04 Thread Rick Mann
I'm slowly but surely getting the hang of using multiple MOCs. I'm successfully creating objects in MOC B and merging those changes into the existing MOC A, and seeing the UI bound to MOC A update to reflect the changes. The problem I'm seeing now is that MOC A then becomes dirty, and wants to