Re: -hexValue for NSString?

2009-03-24 Thread Ali Ozer
NSString's intValue and related methods are conveniences, for quick- and-dirty extraction of the desired value, with limited flexibility and no real error checking. If you want to do error checking, or do a little more sophisticated scanning (like extracting multiple values, etc), you would

Re: Remove action on NSArrayController bound to table causes index beyond bounds

2009-03-24 Thread Luke Evans
Did you try googling the CoreData error message you pasted? One result comes from this very list's archives: Check your Managed Object Model. You most likely have a relationship problem. Specifically, scrutinize your deletion rules on all relationships. Thanks. Well, as far as I can

Re: Memory leak when setting CALayer name

2009-03-24 Thread Gustavo Adolfo Pizano
Sorry misclicked the reply and reply all button, posting agan on the list On Tue, Mar 24, 2009 at 8:42 AM, Gustavo Adolfo Pizano gustavxcodepic...@gmail.com wrote: Ok, let me check the M.M rules once again, there must be something wrong with what im doing. AFter I need no more of a

Re: De-Mystifying NSCell

2009-03-24 Thread Benjamin Dobson
Thanks for this, I've been doing a lot of NSCell work recently. I'll definitely be watching it when I get home! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Simulating (or obtaining) menubar effect in a Cell

2009-03-24 Thread Benjamin Dobson
On 24 Mar 2009, at 01:46:13, Tobias Zimmerman wrote: Hello all- I am working with an NSMatrix, and I would like one cell of the Matrix to act just like an item in the menu bar. Specifically: Single clicking should open a menu; holding the mouse down should open the menu and then close

Re: Remove action on NSArrayController bound to table causes index beyond bounds

2009-03-24 Thread Luke Evans
Mmm... well, I'm coming around to the idea that something about my model might be getting screwed before the index out of range exceptions (though these still happen under the specific conditions noted). However, I can reproduce the Core Data fault error when the managed objects in the

Re: NSSegmentedControl send action only from the selected segment

2009-03-24 Thread Michele Barboni
On Mar 19, 2009, at 10:11 AM, Michele Barboni wrote: Hi, I've a NSSegmentedControl, 7 segments (labeled with weekdays), which has selectedIndex bound through a value transformer (NO reverse transformation) to NSDates. Now, one of my awakeFromNib do this: [sedutaDays setTarget:self];

Custom Table Header ...

2009-03-24 Thread Mic Pringle
Hi, I would like to draw a custom table header, which should also be of a custom size. What's the best way of approaching this ? So far I've found NSTableHeaderView and NSTableHeaderCell for subclassing, and it looks as though I should be able to subclass the headerRectOfColumn: method in

Identifying disks/volumes by a unique ID?

2009-03-24 Thread Oleg Krupnov
My app needs to disable some functions when a disk (volume) is unmounted, and then enable the functions back again if the *same* volume is mounted back again. Is there a kind of unique IDs on disks and volumes I could use for identifying them? Thanks.

Trouble with NSAnimationContext

2009-03-24 Thread Shamyl Zakariya
Hi, I'm writing a custom NSCollectionView from scratch, since I can't figure out how to extend NSCollectionView in some specific ways. So, I've got the layout technique I need working, and superficially, things are going smoothly. However, I tried to use NSAnimationContext to set an

Re: NSObliquenessAttributeName, labelFontOfSize, Italic

2009-03-24 Thread Eric Gorr
On Mar 23, 2009, at 10:34 AM, Eric Gorr wrote: I found this old thread: http://lists.apple.com/archives/Cocoa-dev/2007/Jan/msg00181.html which discusses the same problem I am experiencing. I need an italic version of Lucida Grande, which is the font currently returned by labelFontOfSize.

Using NSValueTransformer to convert NSImage to NSData

2009-03-24 Thread Peter Zegelin
I am trying to bind an NSImageView to my shared user defaults so that when a user drops an image onto the control it is automatically scaled and saved to the users preferences file. I have made a subclass of NSValueTransformer to convert NSImage NSData for saving to the defaults but am

Re: Using NSValueTransformer to convert NSImage to NSData

2009-03-24 Thread I. Savant
On Tue, Mar 24, 2009 at 8:39 AM, Peter Zegelin pe...@fracturedsoftware.com wrote: [value description] gives just a string with nothing obvious in it. This is basic Cocoa 101:

Re: iPhone Tab bar Question

2009-03-24 Thread Dave Camp
On Mar 23, 2009, at 6:02 PM, Jason Todd Slack-Moehrle wrote: I created a standard iPhone application using the built-in wizard and it builds and runs fine. My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I dont see how

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Keary Suska
On Mar 23, 2009, at 2:04 PM, Walker Argendeli wrote: Yes, you're right, Item is an NSArrayController representing the entity Item. Sorry about that. ItemsList is an Entity and Array Controller representing an outline view of folders. Each folder can have multiple Items in it. Depending

Re: Trouble with NSAnimationContext

2009-03-24 Thread Shamyl Zakariya
As a minor addendum, which may help anybody who wants to help me here, I found that if I made my custom view want a layer ( [self setWantsLayer:YES] ) the problem goes away. So, does NSAnimationContext only work when animating layer baked views? On Mar 24, 2009, at 7:26 AM, Shamyl Zakariya

Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread James Maxwell
I have a method that I want to run in the background. When I run it in the app's main thread, all's well, but when I run it as an NSOperation I get an EXC_BAD_ACCESS error. The error happens when trying to initialize a local float array. I know bad access errors are usually caused by

Re: iPhone Tab bar Question

2009-03-24 Thread Brian Slick
On Mar 24, 2009, at 10:20 AM, Dave Camp wrote: On Mar 23, 2009, at 6:02 PM, Jason Todd Slack-Moehrle wrote: I created a standard iPhone application using the built-in wizard and it builds and runs fine. My question is how do I modify the tab bar at the bottom to not make space for an

Re: Stop NSScrollView from catching scroll events.

2009-03-24 Thread Michael Ash
On Tue, Mar 24, 2009 at 1:12 AM, Kyle Sluder kyle.slu...@gmail.com wrote: On Mon, Mar 23, 2009 at 10:48 PM, Michael Ash michael@gmail.com wrote: Right, that would be my preferred way of doing it. I like to use the NSObject methods rather than the ObjC runtime functions where I can, since

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Bill Bumgarner
On Mar 24, 2009, at 7:33 AM, James Maxwell wrote: I have a method that I want to run in the background. When I run it in the app's main thread, all's well, but when I run it as an NSOperation I get an EXC_BAD_ACCESS error. The error happens when trying to initialize a local float array.

Re: NSSegmentedControl send action only from the selected segment

2009-03-24 Thread Keary Suska
On Mar 24, 2009, at 3:54 AM, Michele Barboni wrote: On Mar 19, 2009, at 10:11 AM, Michele Barboni wrote: Hi, I've a NSSegmentedControl, 7 segments (labeled with weekdays), which has selectedIndex bound through a value transformer (NO reverse transformation) to NSDates. Now, one of my

Re: Simulating (or obtaining) menubar effect in a Cell

2009-03-24 Thread Tobias Zimmerman
Date: Tue, 24 Mar 2009 07:47:47 + From: Benjamin Dobson importedfromsp...@googlemail.com Subject: Re: Simulating (or obtaining) menubar effect in a Cell In what way does NSPopUpButtonCell act incorrectly? It seems to work for me, but obviously, I don't know exactly what your target is.

Re: Key path for values in Shared User Defaults?

2009-03-24 Thread Keary Suska
On Mar 23, 2009, at 1:54 PM, Matthias Arndt wrote: Please help me: What is the key path of a value stored in the shared user defaults? I'm using a sub-classed NSViewController to enhance the print panel with an accessory view: NSBundle *appBundle = [NSBundle bundleForClass:[self

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread James Maxwell
- (void)trainNetworkOnMIDIData { NSArray *pitchSlices = [[self MIDITrainingData] objectAtIndex:0]; NSArray *rhythmSlices = [[self MIDITrainingData] objectAtIndex:1]; int sliceCount = [pitchSlices count]; float

Cocoa + XBee

2009-03-24 Thread Jay Kickliter
I've been working on a project that requires me to control a microcontroller-based machine from a distance (either a UAV mulitrotor or glider). So I've written a Cocoa app that still a work in progress, and a small XBee class to aid in assembling API mode XBee packets. It doesn't handle

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Chris Ridd
On 24 Mar 2009, at 15:22, James Maxwell wrote: - (void)trainNetworkOnMIDIData { NSArray *pitchSlices = [[self MIDITrainingData] objectAtIndex:0]; NSArray *rhythmSlices = [[self MIDITrainingData] objectAtIndex:1]; int sliceCount =

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Bill Bumgarner
On Mar 24, 2009, at 8:22 AM, James Maxwell wrote: int sliceCount = [pitchSlices count]; float midiEventsToHTM[sliceCount][20]; float rhythmEventsToHTM[sliceCount][20]; The rhythmEventsToHTM array is the one that's getting the bad access error, and I can NSLog

NSTableDataSource: objectValueForTableColumn Working but setObjectValue Passing Bad Parameters

2009-03-24 Thread Grant Erickson
I am implementing an NSTableView where the data source is a list of devices from the IO registry. Most of the fields are just read-only text cells; however, one is an NSButtonCell and another an NSPopUpButtonCell controlling device behavior when they change state: ID Active Status

Re: iPhone Tab bar Question

2009-03-24 Thread Benjamin Dobson
On 24 Mar 2009, at 01:02:27, Jason Todd Slack-Moehrle wrote: Hi All, I created a standard iPhone application using the built-in wizard and it builds and runs fine. My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I

Re: NSTableDataSource: objectValueForTableColumn Working but setObjectValue Passing Bad Parameters

2009-03-24 Thread Alexander Spohr
please show us your setObjectValue from the .m atze Am 24.03.2009 um 17:20 schrieb Grant Erickson: I am implementing an NSTableView where the data source is a list of devices from the IO registry. Most of the fields are just read-only text cells; however, one is an NSButtonCell

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Sean McBride
On 3/24/09 8:22 AM, James Maxwell said: NSArray *pitchSlices = [[self MIDITrainingData] objectAtIndex:0]; NSArray *rhythmSlices = [[self MIDITrainingData] objectAtIndex:1]; int sliceCount = [pitchSlices count]; float midiEventsToHTM[sliceCount][20]; float

Re: NSTableDataSource: objectValueForTableColumn Working but setObjectValue Passing Bad Parameters

2009-03-24 Thread Grant Erickson
On 3/24/09 9:20 AM, Grant Erickson wrote: However, I am finding that setObjectValue seems to be passing incorrect and unexpected parameters relative to those I receive in objectValueForTableColumn. From the console: tableView: 0x1281f0 objectValueForTableColumn: 0x129c00 (ID) row: 0

Re: Key path for values in Shared User Defaults? [SOLVED]

2009-03-24 Thread Matthias Arndt
Keary, On 24.03.2009, at 16:21 Keary Suska wrote: OTOH, you could have an outlet to the defaults controller, say, named defaultsController and use @defaultsController.values.DEFALTSKEY to keyPathsForValuesAffectingPreview. I think that is supposed to work... Wow, thank you so much, you

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread James Maxwell
Ah, thanks. That makes sense, and it seems to be correct - I am processing ***lots*** of data. I just tried making the float arrays into instance variables, wrapped in NSData objects, and it still crashes, only a little later than before. What's the best way of getting these arrays off the

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread James Maxwell
okay, thanks for the tip, Sean. I'll double-check my use of ints in these cases. On 24-Mar-09, at 9:39 AM, Sean McBride wrote: On 3/24/09 8:22 AM, James Maxwell said: NSArray *pitchSlices = [[self MIDITrainingData] objectAtIndex:0]; NSArray *rhythmSlices = [[self

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread James Maxwell
Scratch that last reply... Just some stupid errors. Putting the arrays on the heap did the trick! Thanks, folks. cheers, J. On 24-Mar-09, at 9:49 AM, James Maxwell wrote: Ah, thanks. That makes sense, and it seems to be correct - I am processing ***lots*** of data. I just tried making the

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Bill Bumgarner
On Mar 24, 2009, at 9:49 AM, James Maxwell wrote: Ah, thanks. That makes sense, and it seems to be correct - I am processing ***lots*** of data. I just tried making the float arrays into instance variables, wrapped in NSData objects, and it still crashes, only a little later than before.

Re: Cocoa + XBee

2009-03-24 Thread Leslie Titze
On 24-Mar-09, at 10:37 AM, Jay Kickliter wrote: I've been working on a project that requires me to control a microcontroller-based machine from a distance (either a UAV mulitrotor or glider). So I've written a Cocoa app that still a work in progress, and a small XBee class to aid in

Crash in Thread 2

2009-03-24 Thread David H. Silber
Hi folks, I have an application that crashes under unknown circumstances after it has been running (mostly hidden and ignored) for several days. This most recent time it crashed when I woke the computer from sleep, but I had done that several times since starting the application. The crash

Re: Crash in Thread 2

2009-03-24 Thread Bill Bumgarner
On Mar 24, 2009, at 10:06 AM, David H. Silber wrote: The crash happens in thread 2. I haven't done anything to make the application multithreaded, so I'm not sure what is supposed to be happening in the various threads. Where would I look for information on what happens where? I'm using

Re: Crash in Thread 2

2009-03-24 Thread I. Savant
On Tue, Mar 24, 2009 at 1:06 PM, David H. Silber co...@davidsilber.name wrote: Where would I look for information on what happens where? The crash logs? They're necessary for you (and the list) to understand what thread 2 even is, much less have any idea how/why it crashed. Incidentally,

Re: Crash in Thread 2

2009-03-24 Thread Scott Ribe
There are a number of API calls that may create a second thread for their own background processing. Most likely, you have corrupted memory somehow in your code on the main thread, and it's (mostly) just a distraction that it eventually causes a crash in thread 2. So standard memory debugging

Re: Crash in Thread 2

2009-03-24 Thread Mark Ritchie
On 24-Mar-09, at 1:06 PM, David H. Silber wrote: Where would I look for information on what happens where? What does the crash log say? (usually recorded in ~/Library/Logs/CrashReporter) M. __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting Inc. Toronto, Ontario, Canada

Optimistic locking failure with NSOverwriteMergePolicy

2009-03-24 Thread Oleksiy Gorelov
Hello All! Does any know how is it possible to receive optimistic locking failure exception with NSOverwriteMergePolicy in all used managed object contexts? Oleksiy Gorelov ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Remove action on NSArrayController bound to table causes index beyond bounds

2009-03-24 Thread Quincey Morris
On Mar 24, 2009, at 01:56, Luke Evans wrote: Mmm... well, I'm coming around to the idea that something about my model might be getting screwed before the index out of range exceptions (though these still happen under the specific conditions noted). The boundary condition you referred to

UINavigationBar hidden in one view but not another

2009-03-24 Thread Joe Turner
Hi, So, what I would like to do is have the uinavigationbar of a uinavigationcontroller be visible in the rootviewcontroller, but when the user goes to the next viewcontroller (it pushes it), have it not visible. Apple gave us the ability to hide it altogether, but then, while the

Re: UINavigationBar hidden in one view but not another

2009-03-24 Thread Luke the Hiesterman
Maybe you could consider doing something other than pushing the new view controller onto the navigation stack. You could potentially do a flip animation to a new view controller or show a modal view controller. Luke On Mar 24, 2009, at 11:28 AM, Joe Turner wrote: Hi, So, what I would

Re: UINavigationBar hidden in one view but not another

2009-03-24 Thread Joe Turner
Well, the issue is the first viewcontroller has a tableview, so it just (probably) should have the pushing animation. It would be weird if the tableview created a flip animation Joe On Mar 24, 2009, at 1:31 PM, Luke the Hiesterman wrote: Maybe you could consider doing something other than

Custom UIBarButtonItems

2009-03-24 Thread Joe Turner
Hi, I would like to create UIBarButton items with custom backgrounds. My main issue is with the back item. I have an image that is just like apple's back button images (about 20x30 pixels). So, the point is that there would be a left cap, so it could be stretched to fit any title that

MEETING: Silicon Valley CocoaHeads March 26

2009-03-24 Thread frameworker
Silicon Valley CocoaHeads is meeting this Thursday, March 26, at 7pm at Intuit in Mountain View. As announced on Theocacao: http://theocacao.com/document.page/601 The guys from 280 North will discuss Cappuccino and demo Atlas. Intuit was kind enough to offer to host us again this month,

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Alexander Spohr
Hey Bill, how about NSZoneMalloc() / NSZoneCalloc()? Wouldn’t it be nice to create a Zone and just dump if if you’re done with all those data? atze Am 24.03.2009 um 18:29 schrieb Bill Bumgarner: On Mar 24, 2009, at 9:49 AM, James Maxwell wrote: Ah, thanks. That makes sense, and

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Walker Argendeli
I'm sorry for the trouble I'm giving you explaining this. The Item.selection.priority keypath indicates that you are referencing the key Item of the array controller (as you describe). How is that key defined? I'm binding to the array controller called Item, which contains entities of type

Re: De-Mystifying NSCell

2009-03-24 Thread Kyle Sluder
As many of you have pointed out, the video became unavailable sometime last night. Our server admin has fixed the problem and the video is once again accessible. Sorry for the inconvenience. --Kyle Sluder ___ Cocoa-dev mailing list

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Kyle Sluder
On Tue, Mar 24, 2009 at 2:52 PM, Walker Argendeli heckler0...@bellsouth.net wrote: The Item.selection.priority keypath indicates that you are referencing the key Item of the array controller (as you describe). How is that key defined? I'm binding to the array controller called Item, which

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Bill Bumgarner
On Mar 24, 2009, at 11:45 AM, Alexander Spohr wrote: how about NSZoneMalloc() / NSZoneCalloc()? Wouldn’t it be nice to create a Zone and just dump if if you’re done with all those data? Zones are generally dangerous. To gain any benefit, you need to have a usage pattern that causes lots

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Ron Lue-Sang
On Mar 24, 2009, at 11:52 , Walker Argendeli wrote: I'm sorry for the trouble I'm giving you explaining this. The Item.selection.priority keypath indicates that you are referencing the key Item of the array controller (as you describe). How is that key defined? I'm binding to the array

How to get selected Item in a NSTableVIew

2009-03-24 Thread Sourabh Sahu
Hi Everyone, I have created a NStableView and populated a data onto it.Now I want user can only click on a cell and when it clicked on cell,the value of that cell get displayed onto some NSTextField. Thanks in advance, Sourabh DISCLAIMER == This e-mail may contain privileged and

Re: iPhone Tab bar Question

2009-03-24 Thread Jason Todd Slack-Moehrle
My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I dont see how to adjust the height of the bar so I gain some extra space. You can't. Where does one find icons they want to use? I am by far not a graphic designer!

Noob question: Weirdness getting the bounds of an NSView...

2009-03-24 Thread Jim Anderson
Hey, folks, I'm reasonably new to Cocoa developing. I'm playing around with a subclass of NSView which generates some stuff based on the size of the view. The code basically looks like: - @interface FooView : NSView { NSRect myBounds; } - (void)doSomeStuff; @end

Re: How to get selected Item in a NSTableVIew

2009-03-24 Thread I. Savant
On Tue, Mar 24, 2009 at 9:59 AM, Sourabh Sahu sourabh_s...@persistent.co.in wrote: I have created a NStableView and populated a data onto it. How? NSTableDataSource protocol or via Bindings? That's important. Now I want user can only click on a cell and when it clicked on cell,the value

Control over position of tooltip for a NSView

2009-03-24 Thread Eric Gorr
Does one have any control over the position of a tooltip assigned to a NSView with the setToolTip: method? Is it possible, for example, to have the tooltip follow the cursor around while it is over the view? ___ Cocoa-dev mailing list

Re: iPhone Tab bar Question

2009-03-24 Thread Dave Camp
On Mar 24, 2009, at 8:32 AM, Jason Todd Slack-Moehrle wrote: My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I dont see how to adjust the height of the bar so I gain some extra space. You can't. Where does one find

Re: Noob question: Weirdness getting the bounds of an NSView...

2009-03-24 Thread Luca C.
Hi JimI'd expect the code you provided to work properly without errors. 2009/3/24 Jim Anderson jbheml...@gmail.com Hey, folks, I'm reasonably new to Cocoa developing. I'm playing around with a subclass of NSView which generates some stuff based on the size of the view. The code

Re: Control over position of tooltip for a NSView

2009-03-24 Thread Luca C.
Hey Eric - 2009/3/24 Eric Gorr mail...@ericgorr.net Does one have any control over the position of a tooltip assigned to a NSView with the setToolTip: method? Is it possible, for example, to have the tooltip follow the cursor around while it is over the view? I think the only way to do

[Q] Convert PixMapHandle to NSBitmapImageRep

2009-03-24 Thread Eric Gorr
While I should be able to use: - (id)initWithBitmapDataPlanes:(unsigned char **)planes pixelsWide: (NSInteger)widthpixelsHigh:(NSInteger)height bitsPerSample: (NSInteger)bps samplesPerPixel:(NSInteger)spphasAlpha:(BOOL)alpha isPlanar:(BOOL)isPlanar colorSpaceName:(NSString

Re: Noob question: Weirdness getting the bounds of an NSView...

2009-03-24 Thread Quincey Morris
On Mar 24, 2009, at 10:46, Jim Anderson wrote: The weird thing is, when drawRect gets called, [self bounds] returns a reasonable looking bounding rectangle. When doSomeStuff gets called, [self bounds] returns {0, 0, 0.0, 0.0}. The extra weird thing is, if doSomeStuff is called *after*

Re: [Q] Convert PixMapHandle to NSBitmapImageRep

2009-03-24 Thread Quincey Morris
On Mar 24, 2009, at 14:48, Eric Gorr wrote: While I should be able to use: - (id)initWithBitmapDataPlanes:(unsigned char **)planes pixelsWide: (NSInteger)widthpixelsHigh:(NSInteger)height bitsPerSample: (NSInteger)bps samplesPerPixel:(NSInteger)spphasAlpha:(BOOL)alpha

Re: [Q] Convert PixMapHandle to NSBitmapImageRep

2009-03-24 Thread Eric Gorr
On Mar 24, 2009, at 6:04 PM, Quincey Morris wrote: On Mar 24, 2009, at 14:48, Eric Gorr wrote: While I should be able to use: - (id)initWithBitmapDataPlanes:(unsigned char **)planes pixelsWide: (NSInteger)widthpixelsHigh:(NSInteger)height bitsPerSample: (NSInteger)bps

Re: De-Mystifying NSCell

2009-03-24 Thread Todd Freese
Thank you for creating this great video. If you are looking for another subject, I would suggest a video on subclassing NSCell. The list constantly has questions regarding subclassing NSCell for NSTableViews. Todd Freese On Mar 24, 2009, at 1:56 PM, Kyle Sluder wrote: As many of you

List of open documents

2009-03-24 Thread Rich Collyer
I am looking for a clean way to find all open documents and their associated paths. +++ Rich Collyer - Senior Software Engineer +++ smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev

Re: List of open documents

2009-03-24 Thread Luke the Hiesterman
http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man8/lsof.8.html On Mar 24, 2009, at 3:27 PM, Rich Collyer wrote: I am looking for a clean way to find all open documents and their associated paths. +++ Rich Collyer - Senior Software Engineer

Re: List of open documents

2009-03-24 Thread I. Savant
On Mar 24, 2009, at 6:31 PM, Luke the Hiesterman wrote: http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man8/lsof.8.html On Mar 24, 2009, at 3:27 PM, Rich Collyer wrote: I am looking for a clean way to find all open documents and their associated paths. In

Re: De-Mystifying NSCell

2009-03-24 Thread Corbin Dunn
I should mention that it is very beneficial to log bug requests at bugreporter.apple.com requesting clarification on any point with NSTableView/NSCell that is difficult to figure out from the existing documentation. Thank you for creating this great video. If you are looking for another

Re: De-Mystifying NSCell

2009-03-24 Thread I. Savant
Corbin: On Mar 24, 2009, at 6:40 PM, Corbin Dunn wrote: I should mention that it is very beneficial to log bug requests at bugreporter.apple.com requesting clarification on any point with NSTableView/NSCell that is difficult to figure out from the existing documentation. Is this the

Re: [Q] Convert PixMapHandle to NSBitmapImageRep

2009-03-24 Thread Michael Ash
On Tue, Mar 24, 2009 at 6:12 PM, Eric Gorr mail...@ericgorr.net wrote: On Mar 24, 2009, at 6:04 PM, Quincey Morris wrote: On Mar 24, 2009, at 14:48, Eric Gorr wrote: While I should be able to use: - (id)initWithBitmapDataPlanes:(unsigned char **)planes

Re: Using NSValueTransformer to convert NSImage to NSData

2009-03-24 Thread Peter Zegelin
On 25/03/2009, at 1:18 AM, I. Savant wrote: On Tue, Mar 24, 2009 at 8:39 AM, Peter Zegelin pe...@fracturedsoftware.com wrote: [value description] gives just a string with nothing obvious in it. This is basic Cocoa 101: I know. I was expecting the class

Re: De-Mystifying NSCell

2009-03-24 Thread Corbin Dunn
Good question! On Mar 24, 2009, at 3:46 PM, I. Savant wrote: Corbin: On Mar 24, 2009, at 6:40 PM, Corbin Dunn wrote: I should mention that it is very beneficial to log bug requests at bugreporter.apple.com requesting clarification on any point with NSTableView/NSCell that is difficult to

Re: De-Mystifying NSCell

2009-03-24 Thread Paul Franz
Kyle, Thank you for an awesome video. Paul Franz Ken Worley wrote: VERY well done and informative. Thanks! Ken On Mar 23, 2009, at 3:10 AM, Kyle Sluder wrote: Hi all, I've noticed recently a few people have posted to the list in a state of uncertainty regarding NSCell, particularly in

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Ron Lue-Sang
On Mar 24, 2009, at 13:43 , Dave Keck wrote: You're binding a levelIndicator? The LevelIndicator's value binding is read-only. That's why it looks like you've changed the value, but you really haven't. The rest of your setup sounds correct. The docs:

Re: iPhone Tab bar Question

2009-03-24 Thread Jason Todd Slack-Moehrle
Hi Dave, My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I dont see how to adjust the height of the bar so I gain some extra space. You can't. Where does one find icons they want to use? I am by far not a graphic

Re: iPhone Tab bar Question

2009-03-24 Thread Mike Abdullah
UITabBarSystemItem On 25 Mar 2009, at 00:47, Jason Todd Slack-Moehrle wrote: Hi Dave, My question is how do I modify the tab bar at the bottom to not make space for an image. I dont want to use images and I dont see how to adjust the height of the bar so I gain some extra space. You

filing documentation bugs -- Re: De-Mystifying NSCell

2009-03-24 Thread Scott Anguish
So, as Corbin and I.S. mention, there are two ways to submit bugs on documentation. - bugreporter.apple.com - the feedback button on documentation pages. Both will get the bugs to the proper people. There are situations when one option is better than another. Small bugs that qualify as

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Dave Keck
You're binding a levelIndicator? The LevelIndicator's value binding is read-only. That's why it looks like you've changed the value, but you really haven't. The rest of your setup sounds correct. The docs:

Do synthesized instance variables work in iPhone SDK?

2009-03-24 Thread Eric Hermanson
I tried using Obj-C properties to synthesize not only the accessor methods, but also the instance variable. I ended up with an error saying something like ...must explicitly name an ivar I was under the impression the iPhone ran the modern (64-bit) Objective-C runtime. I'm using xCode

Re: Crash in Thread 2

2009-03-24 Thread Anders Holm
Or just a dud memory module? Sent from my iPhone ___ 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: Do synthesized instance variables work in iPhone SDK?

2009-03-24 Thread Dave DeLong
The iPhone itself does support synthesized instance variables, if you're compiling for the device. If you're compiling for the simulator, you must have the ivars in place because the simulator uses the old runtime underneath. So to answer your questions succinctly, - synthesized ivars are

NIB Init method for window subclasses

2009-03-24 Thread Ryan Joseph
I have a window in a NIB file which I have assigned a class in the Class Identity field and corresponding NSWindow subclass in code. According to the reference (which is copied below) I think I should be receiving a initWithCoder: message (there are only 3 options) but I never get it.