Re: How to remove items from NSCollectionView without view selection

2011-10-17 Thread Ron Fleckner
On 18/10/2011, at 4:25 PM, Sandeep Mohan Bhandarkar wrote: > Hi All, > > I have created a NSCollectionView currently i am able to add prototypeItems > to this view. For removing items i have a "-" button which i have placed > in the prototypeItemView itself. I have also written an IBAction for

Re: preventing bad memory access

2011-10-17 Thread Kyle Sluder
On Mon, Oct 17, 2011 at 9:26 PM, Wilker wrote: > Hi guys, > > Im having a little problem here with reading NSData from a file, this is the > line that starts the reading: > >    NSData *fileData = [NSData dataWithContentsOfFile:path > options:NSDataReadingMappedAlways | NSDataReadingUncached error

How to remove items from NSCollectionView without view selection

2011-10-17 Thread Sandeep Mohan Bhandarkar
Hi All, I have created a NSCollectionView currently i am able to add prototypeItems to this view. For removing items i have a "-" button which i have placed in the prototypeItemView itself. I have also written an IBAction for its removal. It is as provided below -(IBAction)removeAction:(id)se

preventing bad memory access

2011-10-17 Thread Wilker
Hi guys, Im having a little problem here with reading NSData from a file, this is the line that starts the reading: NSData *fileData = [NSData dataWithContentsOfFile:path options:NSDataReadingMappedAlways | NSDataReadingUncached error:&error]; I wanna it mapped always and uncached because I

Re: 'Static' items in an NSOutlineView

2011-10-17 Thread Quincey Morris
On Oct 17, 2011, at 19:58 , Koen van der Drift wrote: > What it should look like is: > > LIBRARY (static) > Group1 > Group2 > > > FAVORITES (static) > Group3 > Group4 > > RECENT(static) You've missed something basic. In the abo

Re: "Using Drag and Drop in Tables" link gone?

2011-10-17 Thread Koen van der Drift
On Oct 17, 2011, at 11:29 AM, lowell wrote: > If you have the docs installed locally, the document is at > > /Library/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleLion.CoreReference.docset/Contents/Resources/Documents/index.html#documentation/Cocoa/Conceptual/DragandDrop/Usin

Re: 'Static' items in an NSOutlineView

2011-10-17 Thread Koen van der Drift
As I posted a few days ago, I was able to create the 'static items' in my outlineview, What I am now trying to do is to set the order of the static items, without changing the order of the other groups in the view. Using a sortdescriptor won't work, since it will order *all* groups, including t

Re: Code signing issues

2011-10-17 Thread Graham Cox
On 18/10/2011, at 12:27 PM, Gideon King wrote: > • The system interprets the exit status and attempts to obtain a valid > receipt. Assuming your application signing certificate is valid, the system > installs a valid receipt for the application. The system may prompt you for > your iTunes cred

Re: Code signing issues

2011-10-17 Thread Gideon King
On 18/10/2011, at 11:16 AM, Graham Cox wrote: > > However, checking apps I build with Xcode versus those I have downloaded from > the App Store shows that indeed, my dev apps do not have a receipt. Why would > they, I didn't "receive" them, I made them. > > Maybe there's a method for obtaining

Re: Mac core data and iCloud example app

2011-10-17 Thread Steve Steinitz
Hi Martin, Please forgive me for throwing in a comment that won't help you much. I'm happy you've started this thread. For me there is no more interesting topic. Over the coming months I'll be looking closely at Core Data + iCould, and would enjoy staying in touch with you. Core Data is wo

Re: Code signing issues

2011-10-17 Thread Graham Cox
On 18/10/2011, at 12:07 PM, Gideon King wrote: > It can't be that the verification code is using the wrong cert, because the > receipt checking exits immediately it doesn't find a receipt in the app > wrapper, and the system takes over from there to try to get a testing receipt > from the app

Re: Code signing issues

2011-10-17 Thread Gideon King
On 18/10/2011, at 10:40 AM, Graham Cox wrote: > > To actually submit an app to the App Store, it needs to be made into a signed > installer package. The Organizer performs this packaging and signing task. > > For running in the Finder for testing, you don't need to bother with it. > However, in

Re: Code signing issues

2011-10-17 Thread Graham Cox
On 18/10/2011, at 11:59 AM, Gideon King wrote: > I thought the "Mac Developer" one was supposed to show up for use when doing > development builds. It doesn't for me, and I have never used or apparently needed it. Perhaps it's used implicitly however. --Graham _

Re: Code signing issues

2011-10-17 Thread Gideon King
For Mac development, it appears you need a "Mac Developer" cert, a "3rd Party Mac Developer Installer" cert, and a "3rd Party Mac Developer Application" cert. I have these in my keychain, however only "3rd Party Mac Developer Application" shows up in Xcode. I can understand that the installer on

Re: Code signing issues

2011-10-17 Thread Graham Cox
On 18/10/2011, at 11:19 AM, Gideon King wrote: > OK, not sure why have three certs if only one ever shows up, but if always > using the '3rd Party Mac Developer Application' for all your builds works for > you, I'll try the same. You sign the app itself (the executable) with the 'Application'

Re: Code signing issues

2011-10-17 Thread Philip Vallone
Hi, I develop for the iphone, but If the process is the same for a Mac App, you should have 2 certificates in Key chain 1. Mac Developer 2. Mac Distribution On Oct 17, 2011, at 7:34 PM, Gideon King wrote: > 1. When creating the certificates, 3 certs are created and added to the > keychain

Re: Code signing issues

2011-10-17 Thread Gideon King
Thanks for the reply Graham. I'm using Xcode 4.2. Please see comments inline On 18/10/2011, at 9:55 AM, Graham Cox wrote: > On 18/10/2011, at 10:34 AM, Gideon King wrote: > >> So I have the following questions: >> >> 1. When creating the certificates, 3 certs are created and added to the >>

Re: Code signing issues

2011-10-17 Thread Graham Cox
Hi Gideon, which version of Xcode are you using? I'm not crystal clear on the signing procedure myself, but I followed the instructions and it went smoothly, so I can at least tell you what I see for comparative purposes. I'm using Xcode 4.2 (4.1 was similar, 3.x may be different). On 18/10/20

Re: Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread Graham Cox
On 18/10/2011, at 5:59 AM, John Pannell wrote: > Hi Nick- > > There is some composition of views needed to make this work. Within > GCDrawKit, find the GCZoomView class… make your custom view a subview of this > (to adopt all of its zoomy goodness). Then, make your custom drawing view > the

Code signing issues

2011-10-17 Thread Gideon King
Hi, I'm trying to build App store receipt verification into my app. I went through the certificate setup process and believe I have all three keys and certificates successfully installed in my keychain. I then went into my build settings for my project to set the code signing identity. I assumed

Full-height toolbar item

2011-10-17 Thread David Catmull
How can I make a toolbar item that takes up the full height of the toolbar, including the space where the label would normally be? Simply setting the label to an empty string doesn't seem to do it. I want to make something like Xcode 4's status display. -- David Catmull uncom...@uncommonplace.

Re: NSArrayController Update Delay

2011-10-17 Thread Mike Abdullah
On 17 Oct 2011, at 22:22, Richard Somers wrote: > SOLVED > > On Oct 13, 2011, at 4:55 PM, Mike Abdullah wrote: > >> I'm pretty sure the array controller is observing >> NSManagedObjectContextObjectsDidChangeNotification to arrange its objects. >> Normally, this doesn't fire until the end of t

Re: IBOutlet getter/setter pattern question

2011-10-17 Thread Eeyore
Thanks, I guess the situation is that I really want a writeonly property. I don't ever need to read the outlet, I just want to do some adjustments when the property is first set (in this situation, when the nib is loaded). The old style shouldn't look too weird. It is just using @synthesize to

Re: NSArrayController Selection and Managed Object Context Undo

2011-10-17 Thread Richard Somers
SOLVED On Oct 6, 2011, at 8:40 AM, Keary Suska wrote: > AFAIK you will need to manage selection restoration semantics yourself, and > it may not be easy and it may be fragile. Note also that the preserve and > avoid empty selection settings will also have an effect. That being said, the > appr

Re: IBOutlet getter/setter pattern question

2011-10-17 Thread Jerry Krinock
I don't quite understand your special situation. Both your "old" and "new" style accessors look weird. But the "new" is definitely better. Go for it. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera

Re: OutlineView Expand Animation

2011-10-17 Thread Corbin Dunn
Hi Leonardo, On Oct 17, 2011, at 11:15 AM, Leonardo wrote: > Hi, > I am developing a timeline interface. I have a splitView with 2 views. > The left one contains an outlineView displaying the name of the tracks. > The right one contains a simple view containings a blue rectangle (the > track) tha

Re: NSArrayController Update Delay

2011-10-17 Thread Richard Somers
SOLVED On Oct 13, 2011, at 4:55 PM, Mike Abdullah wrote: > I'm pretty sure the array controller is observing > NSManagedObjectContextObjectsDidChangeNotification to arrange its objects. > Normally, this doesn't fire until the end of the runloop. But you can force > it to by calling -[NSManaged

Re: CFDictionarySetValue and ARC

2011-10-17 Thread Kyle Sluder
On Mon, Oct 17, 2011 at 1:56 PM, Brent Fulgham wrote: > I have a routine that creates a CFSocketRef which will later be > assigned to the member variable of an object: > == > - (CFSocketRef)createDataSocketMonitor:(int)socket >              

Re: CFDictionarySetValue and ARC

2011-10-17 Thread Brent Fulgham
This interesting discussion reminded me of an Analyze warning I wanted to resolve (under ARC): On Mon, Oct 17, 2011 at 12:50 PM, Greg Parker wrote: > If you are familiar with retain/release logic then you may find that > CFBridgingRetain() and CFBridgingRelease() > make more sense than __bridge_

Re: CFDictionarySetValue and ARC

2011-10-17 Thread Greg Parker
On Oct 15, 2011, at 8:20 PM, Roland King wrote: > I don't think I want either __bridge_transfer or __bridge_retained, the > former is for passing things back to obj-c classes and the latter I believe > effectively transfers ownership and would require an extra CFRelease() which > isn't going to

Re: Blocks vs. life, the universe and everything

2011-10-17 Thread Greg Parker
On Oct 15, 2011, at 12:28 PM, Jean-Daniel Dupas wrote: > Le 15 oct. 2011 à 21:10, Seth Willits a écrit : >> >> Unrelated, when did @autoreleasepool pop in? I don't remember if I knew >> about that or not. It's _used_ once in the Obj-C Programming Language guide, >> but never documented anywhere

NSScrollView Anomaly

2011-10-17 Thread livinginlosangeles
I have an NSwindow that contains an NSScrollView encapsulating a NSView. I experience weird behavior where the scrollbars appear white and only draw themselves when I resize the window. I have a picture of it here: http://flic.kr/p/awJRcG Any ideas of why this might be happening? It is really a

Re: Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread John Pannell
Hi Nick- There is some composition of views needed to make this work. Within GCDrawKit, find the GCZoomView class… make your custom view a subview of this (to adopt all of its zoomy goodness). Then, make your custom drawing view the documentView of an NSScrollView. You'll now need to wire up

Re: Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread Nick
Hi Fritz, thank you for the link. My application actually is very simple, and the drawing part is implemented already "by hand". So I was just wondering whether or not (and how) it is possible to implement this zooming using NSScrollView 2011/10/17 Fritz Anderson : > On 17 Oct 2011, at 11:47 AM, N

Re: Stepwise articles

2011-10-17 Thread Charles Srstka
On Oct 17, 2011, at 4:37 AM, Mark Taeery wrote: > Hi all, > > does anybody have a copy of the following article: > > http://www.stepwise.com/Articles/Technical/MemoryManagement.html > > archive.org appears not to have it. > > Thanks, > > Mark Unfortunately, Scott Anguish deleted the entire s

OutlineView Expand Animation

2011-10-17 Thread Leonardo
Hi, I am developing a timeline interface. I have a splitView with 2 views. The left one contains an outlineView displaying the name of the tracks. The right one contains a simple view containings a blue rectangle (the track) that can be dragged horizontally by the user. Before Lion I used to expand

Re: Arc and performSelector

2011-10-17 Thread Gerriet M. Denkmann
On 18 Oct 2011, at 00:29, glenn andreas wrote: > > On Oct 16, 2011, at 1:58 AM, Gerriet M. Denkmann wrote: > >> I have this code: >> >> for( id aThing in someArray ) >> { >> if ( [ aThing respondsToSelector: @selector(setTitle:) ] ) >> { >> [ self replaceIn

Re: Arc and performSelector

2011-10-17 Thread glenn andreas
On Oct 16, 2011, at 1:58 AM, Gerriet M. Denkmann wrote: > I have this code: > > for( id aThing in someArray ) > { > if ( [ aThing respondsToSelector: @selector(setTitle:) ] ) > { > [ self replaceIn: aThing > rea

Re: Is it possible to use Radio Group(NSMatrix) in a different way?

2011-10-17 Thread Fritz Anderson
On 15 Oct 2011, at 9:18 AM, Bill David wrote: > I need implement a UI as the following on my Mac OS 10.6: > > option 1 >detailed configuration for option 1 > option 2 >detailed configuration for option 2 > option 3 >detailed configuration for option 3 > > I can't select more than one

Re: Arc and performSelector

2011-10-17 Thread David Duncan
On Oct 17, 2011, at 10:19 AM, Gerriet M. Denkmann wrote: > I understand this. So I tried to tell the compiler that the passed selector > is not like copy: > > - (void)replaceIn: thing readSelector: > (__attribute__((ns_returns_not_retained)) SEL)selectorIn > { > NSString *key = [ thing

Re: Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread Fritz Anderson
On 17 Oct 2011, at 11:47 AM, Nick wrote: > I am trying to implement a simple vector graphics editor. > I have some thoughts on how to implement the elements positioning, > storage and select-ability. GCDrawKit may help you make (a lot of) progress. — F

Re: Arc and performSelector

2011-10-17 Thread Gerriet M. Denkmann
On 18 Oct 2011, at 00:05, David Duncan wrote: > On Oct 15, 2011, at 11:58 PM, Gerriet M. Denkmann wrote: > >> I have this code: >> >> for( id aThing in someArray ) >> { >> if ( [ aThing respondsToSelector: @selector(setTitle:) ] ) >> { >> [ self replaceIn:

Re: Use storyboard in iOS app

2011-10-17 Thread Fritz Anderson
By "the new feature of Xcode 4.2," do you still mean Storyboard? Storyboard is a feature in iOS 5 itself. Xcode 4.2 just provides an editor to support it. There is no way to use a .storyboard in iOS 4.3 or earlier. The business of weak-linking _other_ API is a red herring so far as you are conc

Re: Arc and performSelector

2011-10-17 Thread David Duncan
On Oct 15, 2011, at 11:58 PM, Gerriet M. Denkmann wrote: > I have this code: > > for( id aThing in someArray ) > { > if ( [ aThing respondsToSelector: @selector(setTitle:) ] ) > { > [ self replaceIn: aThing > rea

Re: Arcs and Bridges

2011-10-17 Thread David Duncan
On Oct 15, 2011, at 11:42 PM, Quincey Morris wrote: > Use '(__bridge_transfer NSString *)'. You're transferring ownership via 'axb' > to ownership via 'myString', if that makes any sense. > > ARC uses horribly ambiguous terminology here: This is one of the reasons we added the CFBridgingRetain

Zooming a view, that is contained in an NSScrollView

2011-10-17 Thread Nick
Hello! I am trying to implement a simple vector graphics editor. I have some thoughts on how to implement the elements positioning, storage and select-ability. The problem is i don't know how would it be right to implement Zooming (similar to how graphics editors do it - by allowing the user to se

Re: "Using Drag and Drop in Tables" link gone?

2011-10-17 Thread lowell
If you have the docs installed locally, the document is at /Library/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleLion.CoreReference.docset/Contents/Resources/Documents/index.html#documentation/Cocoa/Conceptual/DragandDrop/UsingDragAndDrop.html -- lowell On Oct 17, 2011, at 6

Stepwise articles

2011-10-17 Thread Mark Taeery
Hi all, does anybody have a copy of the following article: http://www.stepwise.com/Articles/Technical/MemoryManagement.html archive.org appears not to have it. Thanks, Mark ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Use storyboard in iOS app

2011-10-17 Thread Mingming Wang
For people who tested it, you would know it didn't work for older iOS versions. So is the (weak) keyword. So how to utilize the new feature of Xcode 4.2? On Sun, Oct 16, 2011 at 4:03 PM, Don Quixote de la Mancha < quix...@dulcineatech.com> wrote: > On Sat, Oct 15, 2011 at 11:36 PM, Eric E Doleck

Is it possible to use Radio Group(NSMatrix) in a different way?

2011-10-17 Thread Bill David
I need implement a UI as the following on my Mac OS 10.6: option 1 detailed configuration for option 1 option 2 detailed configuration for option 2 option 3 detailed configuration for option 3 I can't select more than one option at the same time, so that I want to use Radio Group to i

Xcode 4.2/iPhone/graphing app development movie

2011-10-17 Thread lbland
hi- We just placed a Xcode 4.2/iPhone/graphing app development movie at: http://www.vvidget.org/develop that might be of interest. Any comments, please email me! thanks!- -lance ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Problems with NSApp runModalForWindow

2011-10-17 Thread Vojtěch Meluzín
Hi folks, thanks for your answers and sorry for the delay. Anyway here's the stack trace: #00x7fff862cff10 in objc_msgSend #10x7fff80341206 in _CFAutoreleasePoolPop #20x7fff8a401200 in -[NSAutoreleasePool drain] #30x7fff8687fe35 in -[NSApplication _realDoModalLoop:peek:] #40x7

"Using Drag and Drop in Tables" link gone?

2011-10-17 Thread Koen van der Drift
An Apple document call "Using Drag and Drop in Tables" is mentioned here: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/DragandDrop/DragandDrop.html, But there is no link provided. Searching for that title also has no results. Does anyone know if this document maybe has

Re: CFDictionarySetValue and ARC

2011-10-17 Thread Roland King
On Oct 16, 2011, at 2:15 PM, Quincey Morris wrote: > On Oct 15, 2011, at 20:20 , Roland King wrote: > >> -(void)addView:(UIView *)view forElement:(id)element >> { >> CFDictionarySetValue( viewToElementMap, (__bridge id)view, (__bridge >> id)element ); >> } >> >> gives me >> >> error: in