Re: A question about core data.

2012-04-12 Thread Mike Abdullah
Whoah, back up. It sounds like you've dived in over your depth. No, you don't have to use an array controller; you are free to modify the context as you wish. Using one of Cocoa's built-in controllers might well prove better for your task, it's hard to say. Fetch requests are what they say on t

Re: A question about core data.

2012-04-12 Thread Felix Franz
Hello Michael, On 11.04.2012, at 00:18, Michael Parchet wrote: > Hello, > > I have started a billing project with coco and core data. In my project, I > have a form that the user must fill to add a customer (for example) but it > seems that core data have only an array controller with a manag

Re: Networking and sleep

2012-04-12 Thread Fritz Anderson
On 10 Apr 2012, at 4:41 PM, Lorenzo Thurman wrote: > I have an app which attempts to make an internet connection after receiving > an NSWorkspaceDidWake notification. Most of the time, the connection fails > with the error, "...internet connection appears to be offline (-1009)". My > guess is t

Re: Question about hebrew in textfields and textviews

2012-04-12 Thread Kyle Sluder
On Apr 12, 2012, at 12:11 AM, Lee Ann Rucker wrote: > That's interesting, because the doc disagrees: > > "Text using NSNaturalTextAlignment is actually displayed using one of the > other alignments, depending on the natural alignment of the text’s script." You're looking at the reference for N

Question about block, ARC, self, and reference counting.

2012-04-12 Thread Scott Andrew
I have a question about retain cycles with ARC and blocks. I have the following code: __weak MyViewController* controller = self; [UIView animateWithDuration:.25 animations:^{ controller.alpha = 0; } completion:^(BOOL finsihed) { [controller showSta

Re: Question about block, ARC, self, and reference counting.

2012-04-12 Thread Ken Thomases
On Apr 12, 2012, at 12:04 PM, Scott Andrew wrote: > I have a question about retain cycles with ARC and blocks. > > I have the following code: > >__weak MyViewController* controller = self; > >[UIView animateWithDuration:.25 animations:^{ >controller.alpha = 0; >} > comp

Re: A question about core data.

2012-04-12 Thread Michael Swan
mparchet, Let Core Data do the heavy lifting for you, that is what it is there for. If you use an array controller with your UI and set up bindings you can get away with out writing any code to make the base of your UI work. If I remember correctly you can send your own SQL queries but you can do

iOS 5: iPod Library Access

2012-04-12 Thread John Michael Zorko
Hello, all ... I'm trying to navigate the artists / albums / genres / etc. on a device. The documentation for this is usually easy to follow, but i'm finding it to be confusing regarding the concept of persistent IDs. I've a couple of questions: 1. What does and what does not have an MPMediaIt

Re: Question about hebrew in textfields and textviews

2012-04-12 Thread Lee Ann Rucker
On Apr 12, 2012, at 8:12 AM, Kyle Sluder wrote: > On Apr 12, 2012, at 12:11 AM, Lee Ann Rucker wrote: > >> That's interesting, because the doc disagrees: >> >> "Text using NSNaturalTextAlignment is actually displayed using one of the >> other alignments, depending on the natural alignment of

Re: Question about block, ARC, self, and reference counting.

2012-04-12 Thread Scott Andrew
Cool. Thank you that was sort of my thought. Then went and watched the WWDC video and went into a bit of a panic. Scott On Apr 12, 2012, at 11:18 AM, Ken Thomases wrote: > On Apr 12, 2012, at 12:04 PM, Scott Andrew wrote: > >> I have a question about retain cycles with ARC and blocks. >> >> I

Watching a variable in Xcode 4.3

2012-04-12 Thread Pascal Harris
I've got the weirdest bug. I have a matrix of views (iOS development, by the way) and all of them work correctly except for the object at 0, 0. The 0,0 view is initialised correctly, but loses its settings at some point (although methods that don't rely on those settings still work - the view

Re: Convert to Objective-C ARC Syntax Error

2012-04-12 Thread Brad Stone
Dave - I am not linking directly to any of the files causing the errors listed in my original email. I did a search on "#import <" and got: #import #import #import #import #import #import #import / #import #import #import #import #import #import On Apr 1, 2012, at 7:16 PM, Dave Zarz

iOS 5: iPod Library Access, pt 2

2012-04-12 Thread John Michael Zorko
Hello all, Is an _artist_ an MPMediaItemCollection of albums, or an MPMediaItem / Entity? If the later, how do I get it's MPMediaItemPropertyPersistentID? Is an _album_ an MPMediaItemCollection of songs, or an MPMediaItem / Entity? If the later, how do I get it's MPMediaItemPropertyPersistentI

Re: Watching a variable in Xcode 4.3

2012-04-12 Thread Alex Zavatone
You can have an if or case statement where you have a breakpoint set for where the condition changes. I used to make a method a long time ago called, get this, -(void)breakpoint, and have a BP on it, but that's a little overkill. switch (myVar) { case (AllIsWell): br

Re: Watching a variable in Xcode 4.3

2012-04-12 Thread Evadne Wu
http://stackoverflow.com/questions/5632477/where-is-the-expression-window-in-xcode-4 might help. On Apr 13, 2012, at 3:02 AM, Pascal Harris <45rpmli...@googlemail.com> wrote: > I've got the weirdest bug. I have a matrix of views (iOS development, by the > way) and all of them work correctly ex

Views-based table drag and drop

2012-04-12 Thread Scott Lahteine
Hi, My app has a views-based table with an NSTableCellView subclass. The represented object implements the NSPasteboardReading, NSPasteboardWriting, and NSCoding protocols. All the hooks are in place for drag and drop, but I need some conceptual help to figure how to implement it properly. I wo

AVAssetWriterInputPixelBufferAdaptor on IOS attempting to write images to a video

2012-04-12 Thread Damien Cooke
HI All, I am attempting to write out an image as a movie well, it will be an array of images but to start with I can't even get one in there. Any help diagnosing my problem would be greatly appreciated. Here is what I am doing: //here is the image NSString *path = [NSString stringWithFormat:

Re: Networking and sleep

2012-04-12 Thread Lorenzo Thurman
On Apr 12, 2012, at 9:33 AM, Fritz Anderson wrote: > On 10 Apr 2012, at 4:41 PM, Lorenzo Thurman wrote: > >> I have an app which attempts to make an internet connection after receiving >> an NSWorkspaceDidWake notification. Most of the time, the connection fails >> with the error, "...internet