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
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
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
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
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
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
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];
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
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.
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
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.
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
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:
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
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
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
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
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
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
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.
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
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.
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
- (void)trainNetworkOnMIDIData
{
NSArray *pitchSlices = [[self MIDITrainingData] objectAtIndex:0];
NSArray *rhythmSlices = [[self MIDITrainingData] objectAtIndex:1];
int sliceCount = [pitchSlices count];
float
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
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 =
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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,
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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!
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
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
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
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
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
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
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
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*
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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:
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
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
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
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.
87 matches
Mail list logo