Re: NSObliquenessAttributeName, labelFontOfSize, & Italic

2009-03-24 Thread Andrew Farmer
On 24 Mar 09, at 05:20, Eric Gorr wrote: Well, actually, considering that using NSObliquenessAttributeName caused the text to look blury, I switched to userFontOfSize which provides a font with a clean italic version. If anyone has a better solution, I would be interested. I filed bug repor

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. Cus

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

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 Help/Unsubsc

Re: iPhone Tab bar Question

2009-03-24 Thread Greg Guerin
Dave Camp wrote: Well, if the built in icons that are accessible in IB are not suitable, and you can't make your own, you hire a graphic designer... Or try what most folks do with a "Where does one find..." question. http://www.lmgtfy.com/?q=iphone+icons -- GG ___

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 xCod

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: http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsT

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 typ

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 ca

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 d

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: http://developer.apple.com/documenta

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 t

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: 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 wrote: [value description] gives just a string <> with nothing obvious in it. This is basic Cocoa 101: I know. I was expecting the class description to show something like

Re: [Q] Convert PixMapHandle to NSBitmapImageRep

2009-03-24 Thread Michael Ash
On Tue, Mar 24, 2009 at 6:12 PM, Eric Gorr 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 >>> pixelsWide:(NSInteger)widthpixelsHigh:

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 pr

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 sub

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 addition

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 +++

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 mail

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 h

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 samplesPerPixel:(NSIn

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 isPlanar:(BOOL)isPlana

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* dra

[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 *)colorSpaceNameb

Re: Control over position of tooltip for a NSView

2009-03-24 Thread Luca C.
Hey Eric - 2009/3/24 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? I think the only way to do that would be to i

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 > 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:

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 ic

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 (Cocoa-de

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 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 of that cell > get displaye

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: 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!

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 confiden

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

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 o

Re: NSLevelIndicator Bindings Crash

2009-03-24 Thread Kyle Sluder
On Tue, Mar 24, 2009 at 2:52 PM, Walker Argendeli 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 contains entities

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 (Cocoa-dev@lists.ap

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 t

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

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: The guys from 280 North will discuss Cappuccino and demo Atlas. "Intuit was kind enough to offer to host us again this mont

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 nee

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 pu

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 like

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 animati

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

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 ad

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

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 tech

Re: Crash in Thread 2

2009-03-24 Thread I. Savant
On Tue, Mar 24, 2009 at 1:06 PM, David H. Silber 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, there are a number of

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 tim

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 happe

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 assembl

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. W

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 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 MIDITrainin

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: 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, y

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: 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 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 and

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 don

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 Value

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 the

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 = [

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 ser

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 midiEventsToHTM

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 class]]

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 > 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. I am trying to simulate an

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 a

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. Si

Re: Stop NSScrollView from catching scroll events.

2009-03-24 Thread Michael Ash
On Tue, Mar 24, 2009 at 1:12 AM, Kyle Sluder wrote: > On Mon, Mar 23, 2009 at 10:48 PM, Michael Ash 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 the NSObject methods are usually frie

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 ima

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 trying

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 w

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. Dependin

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 t

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 wrote: >[value description] gives just a string <> with > nothing obvious in it. This is basic Cocoa 101: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/CocoaObjects.html Also

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 h

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.

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 anima

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. _

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 NSTable

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]; [sed

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 tabl

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 i

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 mo

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 particu

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 tell