Hi all,
I'm getting really frustrated with unit testing here - it just works so
erradicly - unit tests are fine, then I refactor my code and update tests
accordingly and suddenly I get selector not recognized message and some of
the tests fail. Then I mess with code a bit, and it starts to work ag
Am 05.03.2010 um 00:48 schrieb Daniel Káčer:
> [myDictionary setObject:[[ComplexObject alloc] initWithFrom:_tempFrom
> pairTo:string] forKey:[NSString stringWithFormat:@"%d", [myDictionary
> count]]];
Why don’t you use an NSArray?
atze
___
Hello Kyle and all cocoa-devers,
Le 5 mars 10 à 00:21, Kyle Sluder a écrit :
On Thu, Mar 4, 2010 at 1:45 PM, David Geldreich > wrote:
I am refactoring one big NIB file into smaller pieces. I copy/paste a
WindowController object and a Window object in a new "empty" NIB.
Window controllers don'
On 5 Mar 2010, at 08:29, David Geldreich wrote:
> Hello Kyle and all cocoa-devers,
>
> Le 5 mars 10 à 00:21, Kyle Sluder a écrit :
>
>> On Thu, Mar 4, 2010 at 1:45 PM, David Geldreich
>> wrote:
>>> I am refactoring one big NIB file into smaller pieces. I copy/paste a
>>> WindowController obje
Le 5 mars 10 à 11:48, jonat...@mugginsoft.com a écrit :
Including the window controller in the nib is a non standard approach.
I am maintaining this software, that's why I want to move to the
"standard approach".
1. Decompose your monster nib as required.
2. In IB select Files's Owner and
Hi All,
I need to remove the style effect on the parent nodes of the NSOutlineView, as
show on the link below.
http://www.flickr.com/photos/47616...@n08/4408708386
I don't seem to be able to find any options in interface designer.
Any help greatly appreciated.
Billy Flatman
b.flat...@googlema
On 5 Mar 2010, at 12:23, David Geldreich wrote:
>> 1. Decompose your monster nib as required.
>> 2. In IB select Files's Owner and display the Identity Inspector.
>> 3. Set the class to that of your custom window controller.
>> 4. Now hook up your nib targets and actions to the File's Owner.
>
Hi Billy,
If you are referring to the (grey) group style, then you can override the method
- (BOOL)outlineView:(NSOutlineView *)outlineView isGroupItem:(id)item
in your delegate and return NO.
Cheers,
Martin
On Mar 5, 2010, at 1:33 PM, Billy Flatman wrote:
> Hi All,
>
> I need to remove the
Hi Josh,
The basis of it are, create your NSDocument subclass, put the relevant
document-handling info into your Info.plist file, and hook up the
appropriate menu items (New, Save, Open, etc) to the First Responder. If you
look into the Document-based Cocoa App template, you can find what all of
t
Hello.
I have the following code:
..
CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path,NULL,midX,minY);
CGPathAddCurveToPoint(path,NULL, maxX , minY, maxX, midY , 2.0f, 2.0f);
CGPathAddCurveToPoint(path,NULL, maxX, maxY, midX, maxY
OOP sorry I messed up with the points\
:P
On Mar 5, 2010, at 2:34 PM, Gustavo Pizano wrote:
> Hello.
> I have the following code:
>
> ..
>
> CGMutablePathRef path = CGPathCreateMutable();
>
> CGPathMoveToPoint(path,NULL,midX,minY);
> CGPathAddCurveToPoint(path,NUL
EHH nop sorry, I fixed and still I get the nice flower..
CGContextBeginPath(currentContext);
CGContextMoveToPoint(currentContext,midX,minY);
CGContextAddCurveToPoint(currentContext, maxX , minY, maxX, midY ,
2.0f, 2.0f);
CGContextAddCurveToPoint(currentCon
On Mar 4, 2010, at 6:14 PM, Graham Cox wrote:
>
> On 05/03/2010, at 12:39 AM, Eric Gorr wrote:
>
>> Now, there are other means that will cause the NSPanel to be closed with
>> different answers to whether or not it should be visible at the next launch.
>
>
> It's not clear to me why. You onl
Eric Gorr wrote:
In most cases this is the way the code was written. However, for a
small number of panels, the design was different and this doesn't
work. It was made dependent upon knowing how the window was being
closed. At some point, I will be able to go back and change this
ancient
On Mar 5, 2010, at 11:53 AM, Greg Guerin wrote:
> Eric Gorr wrote:
>
>> In most cases this is the way the code was written. However, for a small
>> number of panels, the design was different and this doesn't work. It was
>> made dependent upon knowing how the window was being closed. At some p
Using IB I have placed a custom view in a window toolbar. The custom
view contains buttons. The buttons are connected to actions. The
custom view as a tool bar item auto validates. In IB the custom view
and its contained buttons appears in the tool bar and customization
palette.
The pr
Eric Gorr wrote:
The use of a global was considered and rejected. But, would likely
be reconsidered if -windowShouldClose: does not work as expected.
Then add a category method that means "close but preserve open state
for next launch", and call that from the termination delegate.
Or a c
On Mar 5, 2010, at 5:45 AM, Gustavo Pizano wrote:
> EHH nop sorry, I fixed and still I get the nice flower..
> CGContextBeginPath(currentContext);
>
> CGContextMoveToPoint(currentContext,midX,minY);
> CGContextAddCurveToPoint(currentContext, maxX , minY, maxX, midY ,
> 2
I have a CoreData project and I'm trying to figure out how to display multiple
entity types in one table view.
I have a Team that has Skaters and Goalies. Skaters and Goalies have Player as
a parent. Team has a to-many relationship to Player. I have a TableView that
displays all of the playe
Hello Duncan.
I want to draw the inside of a UIButton with a gradient, so I just place in IB
a Cusotm Buttom, and in the drawRect I taking its bounds, and from there Im
getting the midX,minX etc.
So let me see if I get this straight, and rechecking the docs,.
OH OMG!!
I m such an idiot,
My point is not that I don't know how to fix it or cannot (as an absolute) fix
it, but that it is not practical to fix it at this time, so I need a way to
determine how the window was closed.
If you have never faced one of these situations before, just wait awhile...you
will.
On Mar 5, 2010,
Well, I have read and re-read the docs on custom views in a toolbar.
In particular the section "View item validation".
I sub-classed NSToolbarItem and set the custom view toolbar item to
this class.
In this subclass I have outlets for all the controls in the view.
I overrode -validate.
I
On Fri, Mar 5, 2010 at 1:44 PM, Eric Gorr wrote:
> My point is not that I don't know how to fix it or cannot (as an absolute)
> fix it, but that it is not practical to fix it at this time, so I need a way
> to determine how the window was closed.
Given that there's no reliable way to determine
On Mar 5, 2010, at 1:59 PM, Sherm Pendley wrote:
> On Fri, Mar 5, 2010 at 1:44 PM, Eric Gorr wrote:
>> My point is not that I don't know how to fix it or cannot (as an absolute)
>> fix it, but that it is not practical to fix it at this time, so I need a way
>> to determine how the window was c
On Mar 5, 2010, at 10:04, Jean-Henri Duteau wrote:
> I have a Team that has Skaters and Goalies. Skaters and Goalies have Player
> as a parent. Team has a to-many relationship to Player. I have a TableView
> that displays all of the players of a selected team. Everything works just
> fine a
On Mar 5, 2010, at 10:45, David Blanton wrote:
> Well, I have read and re-read the docs on custom views in a toolbar. In
> particular the section "View item validation".
>
> I sub-classed NSToolbarItem and set the custom view toolbar item to this
> class.
>
> In this subclass I have outlets f
On 2010-03-05, at 11:21 AM, Quincey Morris wrote:
> The difficulty is that (of course) all the rows in a table view are the same.
> Therefore the table view must see a consistent data model that isn't your
> actual data model.
>
I know and I'm trying to think of UI alternatives that wouldn't
On Mar 5, 2010, at 11:45 AM, David Blanton wrote:
So two hours later I still cannot display a custom view containing
buttons in an NSToolbar. Something that in MFC is trivial is near
impossible with Cocoa. The Windows guys here are laughing their ...
off at my inability to accomplish a triv
Ok, after re-studying the documentation on bindings, etc, and material from the
list archives, I was able to get my tableview working with a popup menu in one
column. Neuburg's suggestions, though appreciated, let to a blind alley because
the documentation clearly states that the array that defi
On Fri, Mar 5, 2010 at 10:45 AM, David Blanton wrote:
> I have called every possible method on the view and the controls for them to
> display. Never see anything and in fact the second time through -validate
> EXC_BAD_ACCESS is thrown.
You never need to call anything to result in display. Your
RANT AGAINST DOCUMENTATION:
I have searched (a lot) and found various other pleas for help of the form, "I
am trying to do a Core Date fetch on an SQL-backed store and it is failing
because something is wrong with my predicate." I thought some investigate
could promote my plea beyond this basi
Hi Mark
> So, here is my plea for help. I have a predicate of the form: " string> BEGINSWITH path". In other words, I am searching entities that
> possess a (string) property "path" to look for one whose path is a prefix of
> some string (which is inserted into the predicate via the
> fetch-r
Hi,
I'm trying to make a NSTableView selected row not look selected. I
subclassed NSTableView & added the following class & delegate methods:
// remove selection indication
- (void)highlightSelectionInClipRect:(NSRect)clipRect
{
NSLog (@"%s", __FUNCTION__);
}
// change selected cell text col
On Mar 5, 2010, at 1:53 PM, Kyle Sluder wrote:
> You have a memory management bug somewhere, most likely in your
> validation method. Turn on zombies, run in Instruments, and find out
> where.
If you’re using Xcode 3.2 or later, even before setting NSZombieEnabled and
running in Instruments, you
On 3/5/10 10:18 PM, Joanna Carter said:
>> So, here is my plea for help. I have a predicate of the form:
>" BEGINSWITH path". In other words, I am searching
>entities that possess a (string) property "path" to look for one whose
>path is a prefix of some string (which is inserted into the predic
Hi Sean
> But you shouldn't have to... Core Data is "not a database" and its use
> of SQL is an implementation detail. One shouldn't have to know anything
> about SQL to use Core Data. Of course, in practice, such knowledge is
> helpful, as you say.
You have a point but, in theory, predicates a
Cells highlight using white text based on the background style as far as I can
tell. Try:
[cell setBackgroundStyle:NSBackgroundStyleLight];
Instead of setting the text color.
-Noah
On Mar 5, 2010, at 5:25 PM, Kent Hauser wrote:
> Hi,
>
> I'm trying to make a NSTableView selected row not l
I have a delegate of NSTextField that uses the controlTextDidEndEditing: method
to do some stuff when the editing has finished.
However, there are (as far as I can imagine) two types of possible scenarios
under which the editing finishes: 1) the user hits return. in this case, the
focus stays
On 6 Mar 2010, at 01:00, Ulai Beekam wrote:
>
> I have a delegate of NSTextField that uses the controlTextDidEndEditing:
> method to do some stuff when the editing has finished.
>
> However, there are (as far as I can imagine) two types of possible scenarios
> under which the editing finishes
On 5 Mar 2010, at 20:01, Eric Gorr wrote:
Why is -windowShouldClose: not reliable?
May be, because the situation is as the method's documentation says:
"This method may not always be called during window closing.
Specifically, this method is not called when a user quits an
application."
Thanks all for the sharing of thoughts. Glad someone could confirm that what I
was attempting did not make sense from the SQL perspective (which I am a newbie
to). But, like Sean wrote, Core Data seems to be presented as an abstraction
ABOVE the layer which implements the actual storage/retrie
Sweet, thanks! I didn't even know of NSTextMovement, but doing a search for in
Spotlight, I saw that it was indeed buried somewhere in the Event Handling
Guide :)
So anyway, this is how I'm doing it now, and so far it seems to be working well:
- (void)controlTextDidEndEditing:(NSNotification *
Thanks for the suggestion. I tried your suggestion (and the NSCell
setHighlighted method) to no avail. Any other thoughts on how black turns
white?
Kent
On Fri, Mar 5, 2010 at 12:52 PM, Noah Desch wrote:
>
> Cells highlight using white text based on the background style as far as I
> can tell.
I haven't been able to find any documentation or relevant Web results regarding
a situation I'm experiencing:
I get different results for the same identical NSURLRequest when I execute the
request using NSURLConnection's +sendSynchronousRequest versus when I execute
using asynchronously by allo
On 2010 Mar 05, at 19:54, Stuart Malin wrote:
> I haven't been able to find any documentation or relevant Web results
> regarding a situation I'm experiencing:
Indeed, see below.
> I get different [error] results for the same identical NSURLRequest when I
> execute the request using NSURLConn
On Mar 5, 2010, at 10:07 AM, Gustavo Pizano wrote:
> Hello Duncan.
>
> I want to draw the inside of a UIButton with a gradient, so I just place in
> IB a Cusotm Buttom, and in the drawRect I taking its bounds, and from there
> Im getting the midX,minX etc.
> So let me see if I get this straig
46 matches
Mail list logo