My goal is to have an NSOutlineView (Source List style) that contains group
items at it's root with each group item corresponding to a Core Data entity
type (which I'll hard code, it doesn't need to automatically adapt to new
entity types). I'd then like those group items to contain leaves for ever
On 09/09/2009, at 2:28 PM, Brent Gulanowski wrote:
Here's one option. I think it's your second one. Was easier to do than to
try to explain it. Plus less chance I describe it wrong.
Thank you so much Brent! The combination of adding ArrayController outlets
to the AppDelegate and then returning t
I have a transient calculatedBalance property in my Account entity
that is currently implemented as a read-only property returning:
[self valueForKeyPath:@"transactio...@sum.amount"]
This appears to work but I'd like observers of this property to be
notified every time a transaction is added, modi
2009/9/15 Kyle Sluder :
> If the only reason you want this is so that observers of calculatedBalance
> are notified when transactions changes (and therefore calculatedBalance),
> implement -keyPathsAffectingCalculatedBalance: to return a set that includes
> @"transactions".
That was my original i
The following is what I ended up with and it seems to work. Please
feel free to pimp my code though... not only do I still have a LOT to
learn but I also really struggle with knowing when to release and
retain.
I plan to change it to use a context but figuring out the best
practice for that can wa
Someone kindly warned me off-list about taking care when an item is
deleted and then re-added by an Undo. It turns out my "solution" was
not complete (nor correct - see below).
When a user undoes a deletion it calls the primitive accessor which
does not emit KVC/KVO notifications. I get the feelin
>
> Question: How can I change this behavior to allow LOOPING to the beginning
> of the scroll list?
>
Ric,
I just did a quick search for "continuous UIPicker" and found a page
discussing this...
http://www.iphonedevsdk.com/forum/iphone-sdk-development/4479-uipickerview-circular.html
Most commo
John,
The info you are after is at:
http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/KeyValueObserving/Concepts/DependentKeys.html
Specifically, keyPathsForValuesAffectingValueForKey:
Regards,
Matthew
Safe, comfortable and satisfied? Consider supporting some people who aren'
Jim Correia wrote:
> What you are talking about is not observing child entities. You wish to
> observe related instances (NSManagedObject or subclass thereof). The entity
> describes the instance, but is not the instance.
>
You're right and I don't think that's overly pedantic. OTOH I was just
try
http://www.lmgtfy.com/?q=populate+contents+nstokenField
http://lists.apple.com/archives/Cocoa-dev/2005/May/msg00551.html
2009/9/30 vince :
> Thanks for the assistance ...
> How can I populate the contents of a tokenField object with multiple tags at
> application startup?
>
> -v.
> ___
Hi Bryan,
It's not much info to go on... perhaps NSToolbar objects to the Spice
Girls or Gloria Estafan? =)
What have you tried (.com)?
The screenshot makes a lot of the controls look... nonstandard.
Perhaps try removing some of your customisations one at a time and see
how it affects the proble
Hi All,
I have a 10.4 style date formatter applied to an NSTextFieldCell. I
call setTwoDigitStartDate: (tried with both the epoch date and the
"reference" date) but when I type a date with a two digit year in it sets
the year to 0009 instead of 2009. Am I missing something obvious?
Regards,
Matt
>
> I have a 10.4 style date formatter applied to an NSTextFieldCell. I
> call setTwoDigitStartDate: (tried with both the epoch date and the
> "reference" date) but when I type a date with a two digit year in it sets
> the year to 0009 instead of 2009. Am I missing something obvious?
I've conclud
For some reason I didn't think to test with a style that uses a two digit
year. It works as advertised with the short style. The docs say "The
earliest date that can be denoted by a two-digit year specifier". I guess
that since the medium and long styles don't have a "two-digit year
specifier" asso
Hi Gustavo,
I'm no expert but one way is for the second controller's Content Array or
Content Set to be bound to some property of the first controller's
selection.
For example if you have an entity "Foo" with a to-many relationship called
"bars" you would:
- bind the "content set" of bars array c
Thanks for the help. The main gap in my understanding was that by default an
NSFormatter uses the same format string for converting a string to an object
and converting an object to a string. It is therefore fussy about how the
user types the string.
By subclassing the formatter you can customise
>
> I want to achieve is that from the first list in the first view, I can do a
> drag and drop to the second view, and once dropped I want to show the data,
> so first I was trying setting the selected item directly, into the second
> view, and having a NSIObjectController in that second nib, that
Inverse of what?
So Item A has link 1 as it's normal link and link 2 as it's alternate
link but then what if link 2 is also the normal link for item B.
My guess is you'll need 2 inverse relationships!
Matt
On Tuesday, October 13, 2009, Rob Keniger wrote:
> I'm just getting started with Core Da
As discussed previously on this list I am using the data source methods of
NSOutlineView to display the contents of two separate NSArrayControllers.
When an item is selected I use outlineViewSelectionDidChange: to manually
update the selection of the appropriate array controller and deselect all
it
2009/10/19 Stamenkovic Florijan
>
>
> I think so... When binding the enabled state of a toolbar item you need to
> make sure that the item does not autovalidate. The "Autovalidates" checkbox
> can be found in the attributes panel of the inspector for a toolbar item. I
> am not sure if this is a bu
A "reducing search" is more commonly referred to as filtering. A
google search should help you very quickly as this is very easy with
core data & bindings.
If you're still struggling another keyword that may help is (NS)Predicate.
Matt
___
Cocoa-dev ma
It did in fact make it through; a good way to check is to look at
Cocoabuilder (http://www.cocoabuilder.com) and the Apple mailing list
archives (http://lists.apple.com). In this case, I found your message
here: http://lists.apple.com/archives/cocoa-dev/2009/Oct/msg01683.html
In Jon's defence I
> could someone point me in the right direction, what is the easiest way of
> doing this? would i have to override the text cell for the outline view, or
> can i use a value transformer of some sort?
I'm sure someone will correct me if (when?) I'm wrong but I've heard
them called badges. Googling
> Let's say I have existing applications running, "A" with a window on top of
> application "B". My program pops up a window and forces it to the front. So I
> have "MyApp" on top of "A" on top of "B". Now I click on Application "A",
> bringing it to the front. Now I have "A" on top of "MyApp" o
On Thursday, November 5, 2009, David Catmull wrote:
> This is for a NSOutlineView source view, and each group in the source view
> contains different kinds of items. In some cases, I want them to be Core Data
> items, so the easiest way to manage that is to use an array controller.
>
You may n
Hi John,
You may get a better response posting on Installer-Dev...
http://lists.apple.com/mailman/listinfo/installer-dev
Matt
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
> P.S. Sorry if this is in the list archives but since cocoabuilder.com is
> down I'm searching lists.apple.com. Searching with
> Search for: NSMigratePersistentStoresAutomaticallyOption
> Match: All
> Find: Substring
> Located In: Whole Document
> Listname Matches: cocoa-dev
>
> I get
On Thursday, November 26, 2009, Mario Kušnjer wrote:
> Is that delegate method in Snow Leopard ?
> Because I don't see it in Leopard !
>
> - (BOOL)outlineView:(NSOutlineView *)outlineView
> shouldShowOutlineCellForItem:(id)item;
I wanted to do something similar recently on Leopard. I ended up wi
On Thursday, November 26, 2009, Gustavo Pizano
wrote:
> so its kinda annoying to type the value with the currency symbol, or even
> worst with the mouse select only the digits to be edited.
>
>
> I dunno if I didn't configure properly the Formatter in IB. Any ideas?
This question has been answer
On Saturday, December 12, 2009, Paxton Sanders wrote:
> I want to know when the user exits edit fields, so I can check values and
> provide immediate feedback. I'm using
> - (void)controlTextDidEndEditing:(NSNotification *)aNotification
> and it works.
Also (& it may not be an issue for you) b
Not directly related to your problem but just for your info...
On Tuesday, December 15, 2009, Joe The Programmer
wrote:
>Regardless, there seems to be an erroneous in there.
That belongs to the preceding LSTypeIsPackage key.
___
Cocoa-dev mailing li
On Wednesday, December 16, 2009, Sravanthi
wrote:
> Is it possible to do image editing... ...using iPhone SDK?
Yes.
What have you tried? (http://WhatHaveYouTried.com)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin re
On Tuesday, December 22, 2009, Gerriet M. Denkmann wrote:
> What I ended up was: subclassing NSArrayController and overriding "newObject"
> to return a new object prefilled with some some nice values, including
> setting my uniqueKey to "undefined", "undefined_1", "undefined_2", etc.
> This will
On Monday, December 28, 2009, Jeremy Matthews wrote:
> Currently, I have a nspopupbutton with some general values "Airbus",
> "Southwest", "Delta", etc...upon making the proper selection and clicking the
> "generate" button, it creates the event with said attributes, including the
> URL. So, I
On Monday, January 4, 2010, padmakumar wrote:
> What are all the ways we can programmatically make anti aliasing techniques
> for texts displayed in NSTextField.
>
> regards
> PK
Try this:
http://tinyurl.com/anel
Or this is shorter & easier to read:
http://tinyurl.com/l2fucm
This is also a goo
On Tuesday, January 5, 2010, Henri Häkkinen wrote:
> Thanks for your answer again, Patrick.
>
> By the way, what is the general opinion about the Cocoa Bindings technology
> among Mac developers?
Don't confuse my uninformed opinion with the general opinion but it
appears to be an 80% technology.
Yeah... There are many situations that the simple way will be right
99% of the time... And for the other 1% I reckon 99% of affected users
will forgive you for not wasting bug hunting time worrying about leap
seconds...
Of course 72.3% of statistics are made up on the spot so don't quote
me on tho
On Saturday, January 9, 2010, Philip Ershler wrote:
> Martin,
> If you haven't seen this already, check this out.
>
> Password generation via a free app and built-in OS X tool
>
>
> http://www.macosxhints.com/article.php?story=2010010515545381
And that article links to CocoaDev explainin
Google NSPredicateEditor.
Regards,
Matt
On Saturday, January 16, 2010, Trygve Inda wrote:
> Is there sample code to do the type of windows used to define smart
> playlists... With expanding rules +/-.
>
> Eg...
>
> Name is, contains, begins with --- +/-
>
> Clicking + will reveal a new row to
On Sunday, January 17, 2010, Brad Stone wrote:
> The best I can do for the NSTextField is bind an action and in, IB, in the
> TextFieldAttributes set "Action" to "Sent on End Editing" which sends the
> action after the first character is type. I want the action sent as soon as
> the field gai
On Sunday, January 24, 2010, Andy Lee wrote:
> On Jan 23, 2010, at 11:55 AM, Paul Bruneau wrote:
>> I can offer two tips. The first is make the tabs be visible in IB because
>> then it's so much easier to switch between them in IB.
>
> You can also use the outline view in the main IB window. I t
On Monday, January 25, 2010, yuqi chang wrote:
> I have heard that there are some apps that hook into the Apple processes
> that will run in the background (namely, hooking into the Apple clock timer
> API)
If you want to time activities while your app isn't running (like a
GPS or time tracking a
On Tuesday, January 26, 2010, Ariel Feinerman wrote:
> Hi,
> I want to implement file browser in my app to allow to see hidden
> files / other. Can you suggest me code examples of cocoa file browser?
http://developer.apple.com/mac/library/samplecode/SourceView/index.html
should get you started.
On Tuesday, January 26, 2010, Matthew Lindfield Seager
wrote:
> On Tuesday, January 26, 2010, Ariel Feinerman wrote:
>> Hi,
>> I want to implement file browser in my app to allow to see hidden
>> files / other. Can you suggest me code examples of cocoa f
On Monday, February 1, 2010, Charles Jenkins wrote:
> P.S. Is it okay to post one's own source code on this forum for the purpose
> of getting assistance?
Sorry I can't help with your actual question but the answer to your
other question is a resounding yes.
Posting code helps preempt the common
On Saturday, February 6, 2010, Neil Allain wrote:
> - search menu opens when the user enters text that has possible matches
> (rather than just when the button is clicked)
> - search menu will update the matches while the user continues to type
Since no one more qualified has replied yet I'll ch
On 15 February 2010 11:03, Sandro Noël wrote:
> the reason why i want to know the position of the dock is because i want to
> latch on to it, over it.
>
I might be wrong and you may have a great reason for wanting to do this but
it doesn't seem very "Mac-like"... There's possibly (probably?) a b
On Tuesday, February 16, 2010, Jens Alfke wrote:
> unless you need your app to remain compatible with the thirty-two Mac users
> who still run 10.4.
Thirty one now. I forgot to tell you I've finally retired my trusty G3
Wallstreet. Rest In Peace Gina, I'll miss you (but only until Apple
releases
On Friday, February 26, 2010, Charles Srstka wrote:
> I suppose for the time being, you could use -[NSApplication
> activateIgnoringOtherApps:] in your application delegate’s
> applicationDidFinishLaunching: method as a workaround.
Caveat Emptor:
If you do this you may annoy customers (on subs
On Saturday, February 27, 2010, Joe Jones wrote:
>
> Thanx,
> Joe
Why? What are you trying to achieve?
I doubt it though! AFAIK you can only have a remote console (i.e.
screen sharing) so the app isn't running in the VNC session, it's
running normally on the host computer.
Your question only ma
Eric Schlegel wrote:
> Mac OS X does not support window child/parent relationships across processes,
> so I think this approach isn't going to work for you.
Eric is completely right but I'm wondering if the OP is saying what he
means and meaning what he says...
Gaurav Srivastava wrote:
> I want
On Sunday, February 28, 2010, Jean-Henri Duteau wrote:
> I don't have a good reason to not put it into the view other than pragmatic.
> I can give the controller a bunch of attributes and bind the view's controls
> to those attributes, as opposed to programatically creating the strings in
> th
On Saturday, February 27, 2010, Jonathan Hendry wrote:
> You might try checking for any telltale running processes, or checking the
> output of lsof -i for any open sockets that are indicative of a VNC or ARD
> connection. That might have to run sudo'd as root.
But again you have no way of know
On Monday, March 1, 2010, Andreas Mayer wrote:
> Try dragging something onto the iTunes source list. iTunes will import it,
> but will not activate itself.
Apples & Oranges... iTunes is (was?) a library application more than a
player. It also has origins in audio, not video. Then again I think
t
54 matches
Mail list logo