Hi,
Sorry for being over a week late to this thread, but I'm the guy who was trying
to get hidden text to work before, in the thread mentioned earlier (Martin
kindly pointed me in this direction). I'm not sure why the test code archives
on my site weren't decompressing, but they probably just
On 2009 Jun 17, at 05:43, Vladislav Struhar wrote:
I'm using Core Data model with NSBinaryStoreType persistent store.
Wow. I've never seen that actually used in real life.
After a long time of using this with no issues, I have encountered
an error:
"The file could not be opened because
Actually I took a look at the file with HexEdit, that the file is
really corrupted! The header was different than the one from good file!
Now how can this happen with saving managed object contex? I'm always
saving in main thread...
The only thing I've found in my code, is that I missed two
On Jun 19, 2009, at 12:19 PM, James Walker wrote:
I set up a drawer in IB, with an NSScrollView containing an
NSTextView as my content view. I open it programmatically, and it
looks fine. But when I try to close the drawer using the mouse, it
just beeps.
With a bit more thought, it's f
Create a NSTextFieldCell and customize it. Create a NSMatrix using
the "prototype" init version, and display it. All the custom
formatting is gone - all cells are vanilla NSTextFieldCells.
Loop through the matrix, and set each cell to a copy of the cell I
used as a prototype, using the "putCel
Hello,
I'm experiencing some difficulties with KVO and auto dependent keys.
Am I doing something wrong, or should I fill a bug report ?
Here is a test case.
MyObject is a class with a single property: name.
MyWrapper is a class that wrap a MyObject instance. It also declares a
property 'na
When you implement + (NSSet *)keyPathsForValuesAffectingName { return
[NSSet setWithObject:@"object.name"]; }, you're implicitly setting up
KVO, so whenever the name of the MyObject instance changes, KVO
notifications are sent for the name of the MyWrapper instance. When
you manually call a
On Jun 20, 2009, at 11:08, Jean-Daniel Dupas wrote:
- (void)dealloc {
[_object release];
[super dealloc];
}
Try changing this to:
- (void) dealloc {
self.object = nil;
[super dealloc];
}
'keyPathsForValuesAffectingName' is going to cause your wrapper to
observe its MyObje
On Jun 20, 2009, at 11:56, Quincey Morris wrote:
But you actually have a 1-1 relationship between the wrapper and the
MyObject, so you kind of need to break the relationship before
releasing the wrapper end of it.
Oops, misspoke. It's a many-to-1 relationship, obviously.
_
Sorry, scratch that, I apparently misread your example. As Phil would
say, I'm an idiot.
Does +keyPathsForValuesAffecting... actually support true keypaths?
The documentation is unclear.
-Jeff
On Jun 20, 2009, at 1:45 PM, Jeff Johnson wrote:
When you implement + (NSSet *)keyPathsForValue
I do something similar here, perhaps you can spot some discrepancy?
// Instantiate a special buttonCell that can be drawn in color and
configure it
CCDColoredButtonCell *colorCell = [[CCDColoredButtonCell alloc]
init];
[colorCell setButtonColor:[NSColor clearColor]];
[c
Le 20 juin 09 à 20:56, Quincey Morris a écrit :
On Jun 20, 2009, at 11:08, Jean-Daniel Dupas wrote:
- (void)dealloc {
[_object release];
[super dealloc];
}
Try changing this to:
- (void) dealloc {
self.object = nil;
[super dealloc];
}
'keyPathsForValuesAffectingName' is go
On Sat, Jun 20, 2009 at 12:39 PM, Jeff
Johnson wrote:
> Sorry, scratch that, I apparently misread your example. As Phil would say,
> I'm an idiot.
>
> Does +keyPathsForValuesAffecting... actually support true keypaths? The
> documentation is unclear.
What do you mean by "true" keypaths?
--
Clark
Le 20 juin 09 à 21:39, Jeff Johnson a écrit :
Sorry, scratch that, I apparently misread your example. As Phil
would say, I'm an idiot.
Does +keyPathsForValuesAffecting... actually support true keypaths?
The documentation is unclear.
-Jeff
If this is not supported, I will fill a bug r
On Jun 20, 2009, at 4:15 PM, Jean-Daniel Dupas wrote:
Le 20 juin 09 à 20:56, Quincey Morris a écrit :
On Jun 20, 2009, at 11:08, Jean-Daniel Dupas wrote:
- (void)dealloc {
[_object release];
[super dealloc];
}
Try changing this to:
- (void) dealloc {
self.object = nil;
[su
This problem occurs when observing the NSTreeController keypath:
arrangedObjects.myAttributeName
As far as I can tell, I should be able to do this. Bug report filed.
Workaround -
The reason for observing that keypath was to tell whether any of the
values of my attribute changed so that I coul
>
>
>>
>
> You need to place a view here and do the custom drawing in the view. To
> place the view, you need to subclass NSScrollView and override the -tile
> method to place the view in that corner. The scrollview subclass will also
> typically own the custom view.
>
> Here's an example from the
This is mostly a curiosity. I've found a working solution by using
time intervals, but still don't fully understand why my program would
crash when I used dates.
I declared a (NSDate *) in my .h file.
NSDate *originalDate;
Then in my init method, I initialized it to the current date. I trie
The problem is that the class for which I overrode -isEqual: is a
managed object. According to NSManagedObject documentation, this
"absolutely must not" be done.
After I simplified my object graph, removing some of its entities
relationships, I got a warning at runtime telling me about thi
I suddenly started getting a weird loader crash when launching my app. Has
anyone seen any errors similar to this one:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x
Crashed Thread: 0
Thread 0 Crashed:
0 ???
I'm using the SourceView example project which is an NSTreeController
along with a detail view. I want to let the user remove the selected
item in the treecontroller by clicking on a delete button. I am using
NSTreeController remove:sender and the item is getting removed from
the list, and the se
Hello All--
I am new to Cocoa (about 3 weeks now) and have not done much programming since
the halcyon days of 16K RAM. Finishing up the main body of my program, I
looked at what I have done and shivered. I have implemented a delegate method
for "textDidChange" to handle a few things, includ
On 20 Jun 2009, at 20:27, Erg Consultant wrote:
I suddenly started getting a weird loader crash when launching my
app. Has anyone seen any errors similar to this one:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x
Crashed Thread: 0
Thr
Kevin, I can't give definitive answers but I'll try.
I'm fascinated with the history of computers, so while I didn't
experience it I see where you're coming from.
Yes, we do have much more resources available now. I think you're
going to have to adjust to the fact that an identical app writ
How can I tell how computationally expensive a class or method is?
I've never been this far from the metal. Is there a corpus
somewhere listing this, or do programmers just know these things
from their experience?
Hi Kevin,
I recommend running Shark for tasks really want to inspect. It i
On Jun 21, 2009, at 1:50 PM, Justin Carlson wrote:
Finally, on a side note and because this is my first OOP, just how
big should a class get? Just as a rule of thumb. I have 700 lines
and 50 methods in my MyDocument class and it seems positively
bloated to me.
It probably is too large
26 matches
Mail list logo