Are you asking about an NSFetchRequest that notices when objects are added to
or changed in your persistent store by another process, or by another thread in
the same process?
In the latter case you can use the notifications posted by the
NSManagedObjectContext that's being saved, and use that
How are you getting the URL that you pass to represent your application?
Could it be that you’re constructing the URL from a relative path when run from
the command line, rather than the full path? (You can’t depend on being run
from any particular working directory.)
-- Chris
> On Sep 26, 2
On Sep 27, 2016, at 1:54 PM, Markus Spoettl wrote:
>
> On 27/09/16 22:39, Chris Hanson wrote:
>> How are you getting the URL that you pass to represent your application?
>>
>> Could it be that you’re constructing the URL from a relative path when run
>> from the
On Oct 27, 2016, at 9:02 PM, Steve Mills wrote:
>
> Yes, the Asset is an NSManagedObject. In this call chain, there is no
> NSManagedObjectContext in sight.
There is always an NSManagedObjectContext involved; an NSManagedObject doesn’t
exist outside one. Fortunately, you don’t need to pass one
On Oct 28, 2016, at 9:44 PM, Steve Mills wrote:
>
> On Oct 27, 2016, at 23:35:39, Dave Fernandes wrote:
>>
>> The managed objects exist in a MOC whether you have a reference to that MOC
>> or not. You can get a reference to the MOC that an MO “belongs to" from the
>> -[NSManagedObject managed
On Dec 5, 2016, at 4:18 PM, Daryle Walker wrote:
> I've heard that Core Data is a object graph and persistence library. What if
> you want just the first part? The graph seems like a neat way to save on
> modeling code, the external format is not database-ish at all (so the
> capability for c
On Dec 15, 2016, at 7:24 PM, Daryle Walker wrote:
>
> On Dec 6, 2016, at 10:18 PM, Chris Hanson mailto:c...@me.com>>
> wrote:
>>
>> On Dec 5, 2016, at 4:18 PM, Daryle Walker > <mailto:dary...@mac.com>> wrote:
>>
>>> I've heard tha
On Jan 9, 2017, at 8:29 PM, Jens Alfke wrote:
> On Jan 9, 2017, at 6:38 PM, Aaron Tuller wrote:
>> Try doing
>> name.#first
>> as FIRST and LAST are reserved words and need escaping:
>
> Thanks for the answer. Unfortunately this is a library that will allow
> developers to provide their own pre
Please stick to technical discussion on cocoa-dev.
If there are remaining technical questions in this thread, please ask them in
their own threads. (And avoid off-topic derails.)
Thanks.
-- Chris (cocoa-dev co-mod)
___
Cocoa-dev mailing list (Coc
This is the place for neither rants nor personal attacks.
Please keep it technical. Thanks.
-- Chris Hanson (cocoa-dev co-moderator)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
ack/ <http://www.apple.com/feedback/>> and the bug
reporter at <http://bugreport.apple.com/ <http://bugreport.apple.com/>>.
-- Chris Hanson (cocoa-dev co-mod)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
On Sep 3, 2009, at 10:14 PM, Scott Anguish wrote:
Looking inside zip/tar/tar.gz files (something OpenUp never did)
would best be accomplished by writing a QuickLook plug-in (which
probably exists.
I don’t know about any Quick Look plug-ins, but the ZipBrowser example
code both provides a
On Sep 16, 2009, at 6:09 PM, Jay Boyer wrote:
Finally, I am doing this because the preferredLanguages method is
specified to be an OS 10.5+ method and the project I am working on
is being built on the 10.4 SDK.
The proper way to set up this project, as you’ve described it, is to
build the
On Sep 21, 2009, at 12:12 PM, Richard Somers wrote:
I have a core data document based application. When a file on the
disk is opened -awakeFromInsert and -awakeFromFetch are never called
for one of my NSManagedObject objects.
Why is not one of these methods getting called when the object is
On Oct 4, 2009, at 10:39 AM, Jeffrey Oleander wrote:
>> It's not a toy language or API by any stretch of the
>> imagination.
>
> But Core Data seems to be.
Please expand on this, and why you feel it to be the case.
A great many people are using Core Data successfully in their applications on
b
On Oct 12, 2009, at 8:25 AM, Jens Alfke wrote:
> On Oct 12, 2009, at 4:26 AM, Karolis Ramanauskas wrote:
>
>> As you can see each box has one or more little "inputs" and "outputs" in
>> fact these inputs and outputs are instances of one class (KROMPort). When I
>> drag a connection from output to
On Oct 25, 2009, at 1:08 PM, Ian Piper wrote:
> testConverter = Converter.new;
Dot syntax is for accessing state (properties) of objects, not for invoking
behavior.
This should be either
testConverter = [Converter new];
or
testConverter = [[Converter alloc] init];
to indicate that i
On Nov 10, 2009, at 8:15 AM, Ruotger Skupin wrote:
> True, but as I found out the hard way, using Core Data multithreaded and
> Bindings at the same time is a very bad idea and will lead you into a world
> of pain.
This is part of the reason for Core Data’s recommended thread isolation policy:
On Mar 20, 2010, at 4:24 AM, Philippe Sismondi
wrote:
Had I not been compelled to support OS X 10.4 I would have re-
written the whole thing to use something better than threads - GCD
or NSOperationQueue capabilities are said to be safer, although I
have not yet learned them.
Let's nip
On Mar 24, 2010, at 1:15 AM, Ken Thomases wrote:
> You can work around this by signing your app properly as part of building it,
> but I'm not sure it's common to sign development builds.
It’s somewhat common to sign debug builds of Internet applications, using a
self-signing certificate:
http
On Apr 27, 2010, at 3:27 PM, Shawn Erickson wrote:
> On Tue, Apr 27, 2010 at 3:22 PM, Uli Kusterer
> wrote:
>
>> For example, bindings were notorious for causing retain circles when you
>> bound to File's Owner in a NIB, and that was fixed in 10.5, IIRC.
>
> Fairly sure it is still an issue un
On May 2, 2010, at 6:03 AM, Rick Mann wrote:
> I saw that, I had hoped that by not specifying an attribute, it would mean
> the object itself, not an attribute on the object.
Predicates have the “self” keyword for that.
— Chris
___
Cocoa-dev mail
On May 4, 2010, at 12:51 PM, Jens Alfke wrote:
> On May 4, 2010, at 7:34 AM, Bill Appleton wrote:
>
>> i am converting many rsrc dialogs from carbon to cocoa (DITL, DLOG)
>> is there any automatic tool for converting a dialog to interface builder?
>
> I would ask on carbon-dev, since many Carbo
You're thinking of otool, not otest. OCUnit's otest does load bundles,
but it doesn't open (say) ARM bundles on Intel-based Macs.
You can't load a bundle for one platform on another. They're different
platforms...
-- Chris
On May 5, 2010, at 1:10 PM, Bill Bumgarner wrote:
On May 4, 2
On May 27, 2010, at 12:43 PM, Bill Appleton wrote:
> *5)** **I **can't create a simple list*
>
> I did it the only way I could -- with a table that has one column, etc. Man
> that was painful for a simple list. Is there a better way?
In what way did you find creating an NSTableView with one colu
What kind of "drawing in their NSView" do these controllers do right now?
Perhaps that code should be in an NSView subclass and that subclass should be
used in both controllers' nibs.
-- Chris
On Jun 19, 2010, at 4:58 PM, Shane
wrote:
> I have an applications with two controllers, one inh
On Jul 7, 2010, at 1:25 PM, k...@highrolls.net wrote:
> Ok that was my concern. I am not assigning [[SewAndColorController alloc]
> init...] into a variable ergo I thought I should [self retain] and the
> release it when the panel is closed.
Better style would be to still assign the new instan
On Aug 9, 2011, at 3:47 AM, Devraj Mukherjee wrote:
> I am writing an API client for a REST service, parts of the REST API
> returns fixed String values. E.g. status of an order.
>
> I want to represents these fixed responses as constants. I have
> represented fixed numeric values using enums and
On Aug 9, 2011, at 10:10 AM, Gregory Weston wrote:
> I'm still generally in favor of named constants over pre-processor
> substitution. Gives you types and no worry about parentheses.
You can also use the global constant in the debugger (including in command
completion) because it has a symbol
If you're exporting symbols, you could have the visibility attribute be part of
the macro you wrap around 'extern' anyway:
#if defined(__cplusplus)
#define MY_EXTERN extern "C"
#else
#define MY_EXTERN extern
#endif
#define MY_EXPORT MY_EXTERN __attribute__((visibility("default")))
(
On Aug 13, 2011, at 8:38 AM, Martin Hewitson wrote:
> As I'm writing this I realise it would be much nicer to pass a reference to
> the model object to the view-controller before launching the popup, then have
> the view controller update the model object. I'll play with this some more.
This i
If you're targeting Mac OS X 10.6 or later, you can set arbitrary properties on
your objects in Interface Builder that will be set via KVC at nib load time.
These are called "User Defined Runtime Attributes" and are specified in the
Identity Inspector right under the place where you can set an o
On Aug 15, 2011, at 2:30 PM, Sean McBride wrote:
> It's probably a bit early to require a 7 week old OS (10.6.8) as a minimum.
> Anyone running anything older will see a crash, and quite possibly toss your
> app out.
You can specify your minimum system in your Info.plist, and on earlier versi
On Sep 6, 2011, at 11:53 AM, Jens Alfke wrote:
> The background tool will need to link against WebKit and AppKit, so it won’t
> be strictly-speaking ‘background’. You can mark its bundle with a special key
> (LSBackgroundOnly?) to keep it from showing up in the Dock or getting a
> menu-bar thou
On Sep 6, 2011, at 3:33 AM, Oleg Krupnov wrote:
> I'm implementing a new Lion's API, namely the resume. I need to make
> the following call:
>
> [window setRestorationClass:someClass];
>
> I'd like my app to also work on Snow Leopard, so I do this:
>
> if ([window respondsToSelector:@selector(s
On Sep 6, 2011, at 4:44 PM, Ken Thomases wrote:
> On Sep 6, 2011, at 6:31 PM, Chris Hanson wrote:
>
>> Furthermore, Xcode 3.2.6 and 4.0 added "Latest Mac OS X" and "Latest iOS"
>> options to the Base SDK pop-up, which is preferable to specifying a
>&g
On Sep 6, 2011, at 4:50 PM, Shane Stanley wrote:
> On Sep 7, 2011, at 9:31 AM, Chris Hanson wrote:
>>
>> You should set your Base SDK to the most recent OS whose features you are
>> going to use (in this case 10.7) and set your Deployment Target to the least
>> recen
On Sep 6, 2011, at 8:52 PM, Ken Thomases wrote:
>> And has been discussed in the rest of the thread, you should not leave your
>> Base SDK set to an earlier OS and then invoke methods introduced in a later
>> OS, because the new methods may require new-OS framework behavior.
>
> When did I say
On Sep 6, 2011, at 11:19 PM, Oleg Krupnov wrote:
> So, gentlemen, the OP has ended up completely baffled with your discussion :)
>
> Do I have to build and ship two separate versions of my app, for 10.6
> and for 10.7??! This would be a nightmare!
No.
> At the bottom line, what is the legitimat
On Sep 7, 2011, at 5:58 PM, vade wrote:
> I have an NSWindow, which my app controller is observing the value of
> @"visible" keypath, with the following line
>
> [previewWindow addObserver:self forKeyPath:@"visible"
> options:NSKeyValueObservingOptionNew context:NULL];
>
How did you det
On Dec 17, 2011, at 6:02 PM, C.W. Betts wrote:
> Is there a way to put classes into some sort of array to go through and check
> if the UTI of a file matches up to any of the UTIs that the class can handle?
Classes are objects too, so you can put them in arrays and so on.
-- Chris
__
You're still instantiating every handler class just to see whether one applies
to a given file.
This is exactly why class methods exist: You can implement a class method on
your handler classes like "Can this handler class be used for files of this
type?" Then, for the class answers yes, that'
On Dec 21, 2011, at 7:50 AM, Peter Teeson wrote:
> I want to start a new workspace for an app that will be for both Mac OS X and
> iOS.
> This will be my first iOS app.
>
> The model part of MVC is going to be common but obviously the UIs are
> different.
>
> Am I correct in this plan outline
I have to wonder why you're using CFPlugIn in the first place.
I strongly recommend using NSBundle and Objective-C for your plug-in
architecture, or plain CFBundle and functions & structs if you absolutely must
use C rather than objects for your plug-in architecture.
-- Chris
___
On Jan 3, 2012, at 11:32 PM, Rick Mann wrote:
> I'm working on a Core Data-based CAD app. The schema includes Parts and
> PartInstances. There is a to-many relationship from Part to PartInstance. The
> Library contains Parts, but a CAD file contains Parts and PartInstances.
>
> When the user cr
On Jan 13, 2012, at 12:39 AM, Michael Link wrote:
> the docs seem to indicate that using a main thread concurrency type MOC on
> the main thread without performBlock: is fine.
It is, otherwise you couldn't (say) bind to a managed object you fetched via a
main-queue context on OS X. What OS ver
On Mar 13, 2011, at 4:19 PM, Leonardo wrote:
> on Xcode 4.0, I have noticed, just accidentally, that when the Base SDK is
> set to Mac OS X 10.6 and the deployment target to 10.5, I don't get any
> alert about the use of not-available-APIs.
This is how the Base SDK and Deployment Target build set
On Mar 21, 2011, at 2:19 PM, Rick Mann wrote:
>> You can't currently throw an exception across a forwarded call. When the
>> exception unwinder hits the forwarding frame, it stops and the exception
>> goes uncaught. You'll need to put your exception handler at a different
>> level.
>
> Hrm. Th
On Apr 4, 2011, at 12:38 PM, Bing Li wrote:
>if (nil == defaultMenu)
>{
>@synchronized(self)
>{
>if (nil == defaultMenu)
Don't do this. I don't mean just in Cocoa either, I mean don't do it ever. It's
an anti-pattern called
On May 7, 2011, at 1:50 PM, Bing Li wrote:
> I attempt to use CocoaAsyncSocket to communicate with Java server/client. Is
> it possible to achieve the goal?
Yes, at least in the abstract; TCP is TCP.
You don't need to use CocoaAsyncSocket if you don't want to - you can just use
the BSD-level so
The thing to remember about NSConditionLock is that it's a lock that can only
be acquired when it's in the specified condition.
So for example, the lock can start in condition 0. Thread B can lock when in
condition 0 while thread A can simultaneously lock when the condition is 1.
This means t
On May 29, 2011, at 8:19 PM, Bing Li wrote:
> + (NSString *) Read:(NSString *)xml Path:(NSString *)xPath
You need to start following the Cocoa naming and other conventions. They may be
different than what you're used to, but it will help you a lot in the long term
to write code that fits in we
On May 30, 2011, at 8:45 AM, Vyacheslav Karamov wrote:
> NSString * listsPath = STR_ADDPATH([[NSBundle mainBundle] resourcePath],
> @"lists.zip");
What is STR_ADDPATH? There's already Cocoa API for what it looks like it does:
NSString *listsPath = [[NSBundle mainBundle] pathForResource:@"list
On Jun 10, 2011, at 7:56 PM, William Squires wrote:
> Hi!
> 1st question:
In the future, please just start a separate thread for separate questions.
Thanks!
-- Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
On Jun 17, 2011, at 9:40 AM, Jens Alfke wrote:
> Basically this is a cache of database records, where the dictionary key is
> the primary key and the value is a parsed version of the row data. I want to
> cache these to minimize database calls. I also want to ensure that the value
> objects are
On Nov 27, 2009, at 4:52 PM, Bill Bumgarner wrote:
Then again, HTTP server <-> backend server is a very well explored
area of technology that may offer a pre-rolled solution for you.
I believe Mac OS X 10.5+ includes the FastCGI Apache module and C
library, which are for just this kind of
On Nov 29, 2009, at 5:47 PM, Sandro Noël
wrote:
I have to agree with you here, NSDocument should be just M in the
MVC Pattern, but why is XCode evidently binding it as the C also in
the template project.
Because not every project needs to be picture perfect in its use of
various design
You shouldn't need to write an "installer" in the first place. Mac OS
X comes with its own standard installation system.
If your application is simple, it should be drag-installed; otherwise,
it should use a Mac OS X installer package.
-- Chris
On Dec 1, 2009, at 7:55 AM, Sravana Kumar
Xcode build settings are lexically scoped, just like variables in C.
Think of the project as an outer scope (like a file static variable)
and a target like an inner scope (like a local variable).
If you don't override a build setting at the target level, its project-
level setting is used. Y
On Dec 4, 2009, at 7:47 PM, DeNigris Sean wrote:
> I'm writing a RubyCocoa app, but my question is on the Cocoa API...
>
> I'm trying to unit test a view class. As it is very thin (just delegates all
> work to the controller), all I want to check is that my connections (e.g.
> outlets and acti
On Dec 5, 2009, at 3:46 PM, DeNigris Sean wrote:
>> Furthermore, from your further description it sounds like what you’re
>> referring to as a “view” is actually a subclass of NSWindowController; it
>> knows how to load a nib file already, so you should just leverage that
>> rather than try to
On Dec 12, 2009, at 4:30 PM, Rick Mann wrote:
> Hi. I'm trying to set up a model for a Node and a Segment. A Segment exists
> between Nodes. Each Segment has a node1 and node2 attribute, and each Node
> can have multiple Segments. I don't seem to be able to model this
> relationship; I can have
On Jan 3, 2010, at 8:33 PM, padmakumar wrote:
> What are all the ways we can programmatically make anti aliasing techniques
> for texts displayed in NSTextField.
What kind of results are you trying to achieve?
Mac OS X has a standard antialiasing mechanism in its font rendering; normally,
just
On Jan 4, 2010, at 2:27 PM, Oftenwrong Soong wrote:
> According to the docs, the collector "scans" all of your objects to determine
> what needs to be deallocated. But in performing this scan, how does it "know"
> which bits in your object are pointers to other objects and which bits are
> just
On Jan 18, 2010, at 2:43 PM, David Catmull wrote:
> Is there any way to make sheets open instantly, instead of animating? I'd
> just like to speed up my unit tests.
Why do your unit tests need to bring up sheets?
— Chris
___
Cocoa-dev mailing lis
On Feb 10, 2010, at 4:38 PM, Jason Bobier wrote:
> This idea came about because I was annoyed at having to do it again and
> realized that everything that I wanted to store was NSCoding compliant, which
> means that it should be archivable. It appears that some of the NSCoding
> compliant objec
On Feb 13, 2010, at 4:32 PM, Sean McBride wrote:
> I have
> found NSManagedObject's objectID method largely useless since, as the
> docs say, "if the receiver has not yet been saved, the object ID is a
> temporary value that will change when the object is saved”.
These aren’t as useless for your
On Feb 13, 2010, at 2:32 AM, daniele malcom wrote:
> Here you will found my simple storage data model:
> http://img197.imageshack.us/img197/4388/screenshot20100213at111.jpg
If you’re going to represent a UUID in Core Data, you are likely to be far
better off storing and searching on it as two 64
On Feb 27, 2010, at 11:34 PM, Jean-Henri Duteau wrote:
> BTW, I've already considered a Transformer. The problem with that is one of
> code bloat - I have multiple fields on the view that are derived from this
> one attribute. I haven't figured out a way at design time in IB to make one
> tra
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
The best way to ensure your daemon or agent is always running is to
have it run via launchd.
Start by reading the launchd man page and the "Daemons and Agents"
tech note; these will give you an overview of how Mac OS X used
launchd to manage these types of on-demand and always-on services.
On May 30, 2009, at 11:18 PM, Ammar Ibrahim wrote:
On Sun, May 31, 2009 at 6:16 AM, Chris Hanson wrote:
The best way to ensure your daemon or agent is always running is to
have it
run via launchd.
Start by reading the launchd man page and the "Daemons and Agents"
tech
note;
On Jul 1, 2009, at 8:18 PM, Marco S Hyman wrote:
On Jul 1, 2009, at 6:50 PM, Adam R. Maxwell wrote:
Well, I generally avoid bindings, since I can't comment nib/xib
files, and it takes too long to reverse engineer my own (or worse,
someone else's) bindings when I'm doing maintenance work. W
You absolutely can (and should!) send +alloc to self in a class method
like this. In a class method, "self" represents the class, not an
instance of the class.
This is one reason it's important not to refer to class methods as
"static methods," as less dynamic languages do. In Objective-C,
On Jul 6, 2009, at 2:49 AM, Devraj Mukherjee wrote:
I have a suspicious feeling that there has to be a deleteAll message
that helps clear entities of a certain kind.
There is no "delete all instances of this entity" method in Core
Data. The only way to do so is to fetch all instance of the
GC is opt in on a per-process rather than per-binary basis.
Thus in order to load a GC bundle, OCRunnerTool needs to be built at
least GC-supported and running under GC.
You'll need to determine in advance whether to run tests GC or not,
and then invoke OCRunnerTool with the appropriate env
The below is incorrect. Key-Value Coding (and therefore Key-Value
Observing and bindings) will always use a method if one is present.
-- Chris
On Jul 31, 2009, at 8:33 PM, Kyle Sluder wrote:
Because you have a managedObjectContext ivar, you never change its
value so it defaults to nil, a
On Aug 4, 2009, at 7:51 AM, McLaughlin, Michael P. wrote:
This function is called periodically via the Event Loop.
Are you trying to run your own event loop, and call this method every
so often from it to update a progress bar or something, because your
application is doing something that
Not only does the below code need to use -[NSAutoreleasePool drain]
rather than -release, but it also doesn’t start the background
collection thread.
The first thing it should do in main() is invoke
objc_startCollectorThread() (from ) which will
ensure GC is happening asynchronously, rath
On Aug 7, 2009, at 5:01 PM, David M.Cotter wrote:
the problem is i'm stuck with a very large legacy code base that i
must modify minimally to shoehorn into Cocoa. this same code must
cross compile on windows, so i can't change the underlying
architecture, which has for a decade now relied
On Jul 22, 2010, at 1:15 PM, Quincey Morris wrote:
> Incidentally, if you're dealing with currency, it's better to use integers
> (the number of cents, rather than the number of dollars, essentially) rather
> than floating point.
Actually, the OP has said that her data model has these attribut
Are you using threads, operations or queues (dispatch)?
— Chris
On Aug 16, 2010, at 8:14 PM, k...@highrolls.net wrote:
> Thanks.
>
> I am not doing any Quartz debug, so I rule that out.
>
> I have nothing set in info.plist for NSShowAllDrawing.
>
> -koko
>
> On Aug 16, 2010, at 8:16 PM, Jo
On Aug 28, 2010, at 10:00 AM, Andy Bell wrote:
> At a later date I want to use something like REST using JSON to be the
> backend to Core Data in the application. Is this going to be possible?
Core Data only has API for creating your own atomic persistent stores - that
is, persistent stores w
On Sep 9, 2010, at 7:32 AM, Daniel Lopes wrote:
> My idea for organization is separate the entire content on the left side in
> a new Nib called sidebar and set the FileOwner to a controller in Window
> Nib. Also do the same thing for the right part of the Split View.
>
> That behavior the behavi
On Sep 20, 2010, at 3:30 AM, Stefan Nobis wrote:
> Bill Bumgarner writes:
>
>> Thus, with the latest bleeding edge compiler, all you need is the
>> @property() (and cleanup in -dealloc) to declare a fully KVO
>> compliant attribute of your class.
>
> Is this also supported by the debugger? In X
On Sep 19, 2010, at 12:52 PM, Jim Thomason wrote:
> I'm refactoring and updating a lot of my older code, and one of the
> things I'm finally looking into is declaring things as properties.
>
> But...what's the point? I've been trying to read up on the subject and
> have found a lot of posts and d
On Sep 22, 2010, at 11:39 PM, Tito Ciuro wrote:
> I believe (please correct me if I'm wrong) that Core Data stores the data
> atomically for both, XML and binary formats. That, if I'm not mistaken
> requires the datafile to be read in memory. Not so with NanoStore:
Not really so with Core Data
On Sep 28, 2010, at 10:47 AM, Shawn Bakhtiar wrote:
> Question, why not just derive the camera class from NSWindow?
A camera is not a different kind of window. The only significant reason to
subclass NSWindow is to create a new kind of window - not a window for a
specific task.
> There is no
This implies that you’re not manipulating your “myListRoot” property in a way
compliant with Key-Value Observing.
Just manipulating the instance variable will not post KVO notifications for the
property. You need to manipulate the property (for example, by working with
the proxy NSMutableArray
ct? It does not work when
> I do [myOutlineView reloadData] after I update myListRoot.
>
> Style issues - I agree. But this is a example I am using to teach myself. It
> is not part of a larger project.
>
> Hrishi
>
>
> On 13-Oct-2010, at 12:43 AM, Chris Hanson wro
On Oct 19, 2010, at 12:41 PM, Rainer Brockerhoff wrote:
> A too-low value will make your thread activate too often (making it use more
> CPU when idle) and a too-high value will make it too slow to react to
> "condition" being set to NO. I usually set something between 0.5 and 1; it's
> optimal
I suspect what’s going on is that your unit tests are built non-GC, but the
framework you’re linking against is GC-only. You’ll need to enable GC for your
unit tests too, if you want to test a GC-only framework; Objective-C garbage
collection is on a per-process not per-binary basis.
-- Chri
On Nov 21, 2010, at 11:47 AM, vincent habchi wrote:
> briefly speaking, I have a Core Data Entity bearing a to-many relationship
> (therefore an NSSet * iVar). A dialog on the main thread can modify this set,
> while it may be simultaneously enumerated on a background GCD thread. I have
> ther
On Nov 22, 2010, at 1:08 PM, Quincey Morris wrote:
> On Nov 22, 2010, at 07:58, Hunter Hillegas wrote:
>
>> I think someone somewhere told me that if you create a MOC on the main
>> thread, there's some special runloop integration that is included, hence one
>> of the reasons it's important to
On Nov 23, 2010, at 12:38 PM, vincent habchi wrote:
> However, I have now a repeated memory management crash when I release the moc
> (apparently, one managed object get released one time too much: it is
> destroyed in the main MOC, while the secondary MOC has a copy of it. When I
> release th
On Nov 24, 2010, at 9:50 AM, Artemiy Pavlov wrote:
> I have a view whose drawRect method draws a plot according to a few
> parameters which are global variables. When I change these variables
> according to the user input, I want to update that plot, so I need the
> drawRect method of my view
On Mar 14, 2012, at 2:09 PM, Wade Tregaskis wrote:
>> I don't like the idea of a multithreaded aproach by default, because as a
>> general rule, you
>> should not make your application multithreaded unless you have a good
>> reason.
>
> b) This convenientional wisdom is, in my humble opinion, a
Xcode 3.0 and 3.1 are for Mac OS X 10.5 Leopard.
For Mac OS X 10.4 Tiger, you want Xcode 2.0 through 2.5. I recommend Xcode 2.5
in the strongest possible terms; it fully supports development for Mac OS X on
both PowerPC- and Intel-based 32-bit Macs, and basic libSystem development for
64-bit Ma
On Mar 22, 2012, at 11:24 AM, Eric Wing wrote:
>> Correct. Note that when setting the path, you can get away with just
>> pointing to the copy of Xcode that you'd like to bless:
>>
>> sudo xcode-select -switch /Applications/Xcode.app
>
> Interesting, but as a courtesy note to everybody, tho
What end goal do you want to accomplish with an equivalent to SetWindowProperty?
There isn't necessarily a 1:1 correspondence between API in different
frameworks; describing your desired goal is more likely to lead to a solution.
-- Chris
On Apr 17, 2012, at 11:53 PM, Sanjay Arora wrote:
>
1 - 100 of 303 matches
Mail list logo