Re: Has Apple changed their push certified policy?

2019-02-25 Thread Hunter Hillegas
Correct, you just need one certificate that will cover both (still need one per 
app though).

There’s also a newer JWT based method that looks even more robust, though I 
haven’t used it personally yet. It’s detailed here:

https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html#//apple_ref/doc/uid/TP40008194-CH11-SW1

> On Feb 25, 2019, at 8:36 AM, Alex Zavatone  wrote:
> 
> Maybe a better way of putting the question is “for those of you who 
> implemented push notifications on iOS recently, how did you handle the 
> sandbox/production requirement for certs?”

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Need a direction. App crash in CoreData while loading a window's nib

2018-11-04 Thread Hunter Hillegas

> On Nov 4, 2018, at 12:42 AM, Motti Shneor  wrote:
> 
> 3. I tried to build with Xcode 9.4.1 (MacOS SDK 10.13) then with Xcode 10 
> (MacOS SDK 10.14) - same thing. I only have my MacOS 10.13 to try running on. 
> I cannot run the original Xcode (8.x) with which the production version was 
> built. It won’t run on my OS.

Apple does provide older versions of macOS that you can download and run in 
something like vmWare or Parallels if you want to try running Xcode 8 - it 
would be interesting to see what happens there. Looks like Xcode 8 will run on 
Sierra which you may be able to get via this link: 
https://itunes.apple.com/gb/app/macos-sierra/id1127487414?mt=12

AppKit and other libraries do often behave slightly differently based on the 
version they are built and run against, to maintain compatibility. So it’s 
possible that a build from Xcode 8 would hit slightly different code paths in 
the frameworks than Xcode 9 or 10.

> Another idea I had — I’m using AutoLayout in the .xib file. Maybe — for 
> pre-caculating the “needed” space for some table column, it needs to know in 
> advance the widths of all texts it should ever display there, hence it is 
> forced to scan the whole data via some bindings before it can finally show 
> the table?

I’m much more fluent in UIKit than AppKit but I’d be surprised if this was the 
case - would make Core Data faults, one of the best features for dealing with 
large data sets, basically worthless when used with NSTableView.

That said, you could try profiling this in Instruments to see what it’s doing 
in that period of time right before it crashes when it’s burning CPU.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Need a direction. App crash in CoreData while loading a window's nib

2018-11-04 Thread Hunter Hillegas


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Thoughts on autolayout

2016-04-21 Thread Hunter Hillegas
Nope, I’m a huge fan, especially with newer tools like UIStackView and the 
layout guide stuff.

> On Apr 21, 2016, at 12:19 PM, Charles Srstka  wrote:
> 
> Am I the only one who likes autolayout?


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Apple Bug no response

2016-03-09 Thread Hunter Hillegas
You must be new here. ;-)

You might get an automated email when a future build is available asking you to 
re-test. You may get a note that your bug is a duplicate. You may never get a 
response at all.

I have many open bugs from years back which usually either means the issue is 
still out there or it was fixed but the screeners didn’t wire up the bug in a 
way that they know my issue was resolved.

Apple has said (Craig F. on The Talk Show recently) that this is a place they 
know they have room to improve.

> On Mar 9, 2016, at 12:32 PM, Trygve Inda  wrote:
> 
> I have an open bug report
> 
> How long should I expect to wait for a response?


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: How to record screen in iOS

2016-01-22 Thread Hunter Hillegas
You can (we have done this) but using the public API (even with the iOS 7 
improvements to getting the screen), this doesn’t give you great FPS on 
anything but the latest hardware.

> On Jan 22, 2016, at 9:59 AM, Alex Zavatone  wrote:
> 
> As somewhat of a cheesy hack, can't you capture the desired views or window 
> content as bitmaps on schedule and queue them for processing to a file or set 
> of files to be converted into a video?
> 
> If it's not your app that you want the client to record, couldn't you make an 
> SDK for game vendors to adopt?
> 
> I realize I'm way out here in "speculation land™" with this gross assumption, 
> but we certainly use the front and back cameras with AVFoundation at a decent 
> FPS.  I wonder if you could redirect the screen buffer to take the place of 
> one of the camera feeds.  
> 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: How to record screen in iOS

2016-01-20 Thread Hunter Hillegas
Building a general purpose iOS app to do this is not possible for 
sandboxing/privacy reasons.

For your own apps, you can embed ReplayKit or you can connect to the Mac and 
use QuickTime to record the screen.

> On Jan 20, 2016, at 1:21 AM, ico  wrote:
> 
> Hi All,
> Is it possible to develop an app that can run in the background and record
> the user's device screen. For example, user can use this app to record a
> video how they play a game and post the video on the web etc.
> 
> Anyone can point me to the right direction to get it done?
> Thanks a lot.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Still can't get autolayout to work the way I want

2013-09-19 Thread Hunter Hillegas
That’s too bad. My experience has been quite good but of course, each project 
is different and some things are more complex than others.

On Sep 19, 2013, at 3:24 PM, Rick Mann rm...@latencyzero.com wrote:

 I'm having HUGE problems in Xc5. My comments just now are wrt Xc5 and iOS 7. 
 You wouldn't believe how buggy IB is in Xc5 for me. I'd venture to say it's 
 worse in a lot of ways.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Still can't get autolayout to work the way I want

2013-09-19 Thread Hunter Hillegas
If you haven’t seen it, Apple did expand the AutoLayout Programming Guide about 
a week ago to be more expansive.

Also, it’s probably been said a million times but doing AutoLayout w/ Xcode 4 
was terrible and with Xcode 5, it works a ton better.

On Sep 19, 2013, at 3:18 PM, Brad O'Hearne br...@bighillsoftware.com wrote:

 If anyone out there has THE definitive guide on how to use auto-layout and 
 accomplish various common use cases of relative resizing, you have money 
 waiting in my wallet.  


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: There must be a live human at Apple?

2013-08-02 Thread Hunter Hillegas
Not sure why you don’t just use a different/new Apple ID to sign up for the iOS 
dev program but let’s say you can’t or don’t want to do that for whatever 
reason, you need to read this page:

https://developer.apple.com/support/ios/account-management.html

and use the contact link there to get in touch with the right folks. Be advised 
that recent DevCenter downtime might mean that the pages you need are still 
unavailable. In that case, be a bit more patient and try again in a few days.

Good luck.

On Aug 2, 2013, at 4:46 PM, Michael Crawford li...@warplife.com wrote:

 My hope is to submit an _already_ complete App to the App Store, but I
 _cannot_ do so, until I can change my developer type from Corporate to
 Individual.  To do so would be a State of California Felony, as
 operation of a Suspended Corporation is regarded as a form of Money
 Laundering.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: dev site down time is ridiculous

2013-07-24 Thread Hunter Hillegas
I don’t think you’re the only one. I’m upset too and not being able to 
provision stuff is really messing with my business… I’m trying to find 
constructive things to do instead of complain about it. I can only assume that 
Apple realizes how big a deal it is and is working as fast as they can.

On Jul 24, 2013, at 10:21 AM, Bob Sabiston fl...@media.mit.edu wrote:

 And of course I expect nothing but people to defend Apple and imply that I am 
 f'ed up for complaining

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Dismissing The Keyboard

2013-05-22 Thread Hunter Hillegas
Take a look at [UIView endEditing].

On May 22, 2013, at 4:34 AM, Harmony Neil harmony.n...@gmail.com wrote:

 I preferably want to dismiss the keyboard for whichever of the 3 textFields 
 I'm writing in.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Design Guidance

2013-03-23 Thread Hunter Hillegas
This collection view class works on iOS 5. It's an implementation of 
UICollectionView (same API).

https://github.com/steipete/PSTCollectionView

On Mar 23, 2013, at 11:29 AM, koko k...@highrolls.net wrote:

 2. Use som iOS 5 collection view (what might that be?)


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Is CoreData on iOS ready for prime time for serious work?

2013-02-14 Thread Hunter Hillegas
I've used Core Data a ton in apps since it was introduced on iOS. I've also 
used NSFetchedResultsController quite a bit and I've helped others with their 
Core Data code.

One thing to keep in mind is that Core Data uses exceptions internally as part 
of its normal operation. If you break on exceptions, you'll end up in the 
debugger quite a bit but it's not because anything is broken, just the way Core 
Data is built. Annoying but important to remember. Your customers should not be 
impacted by this at all.

Regarding crashes, by far the most common cause is improper use of Core Data 
and threads/queues. You mentioned using thread confinement - by that I assume 
you mean NSConfinementConcurrencyType and not something like 
NSPrivateQueueConcurrencyType? Have you considered using the newer 
NSPrivateQueueConcurrencyType and the performBlock methods? These enforce the 
threading rules even more explicitly and make it harder to make a mistake. For 
instance, if you init a MOC with thread confinement on the main thread even if 
you only use it on another thread, you're likely breaking the rules (MOCs 
created on the main thread hook into the run loop in special ways - make sure 
you are creating your MOCs on the thread/queue they are going to be used on).

I've done several apps with what sounds like similar use cases and not had 
crashes or other problems so my guess is something may be slightly off… if you 
can use the new stuff, consider it. It's very helpful.

Hope that helps somewhat.

On Feb 13, 2013, at 11:34 PM, Laurent Daudelin laur...@nemesys-soft.com wrote:

 I just added CoreData to an app I'm working on. I've been working with 
 CoreData for about a year, not exclusively but pretty regularly so I think 
 I'm experienced enough to set it up properly.
 
 However, our testers are experiencing what I feel is more than normal crashes 
 in the main part of the app that depends on CoreData. I'm using an 
 NSFetchedResultsController to drive my main table view and that part seems 
 very weak and will break or raise an exception at any time for any reason. I 
 collecting those crashes that can be detected by TestFlight and there is no 
 relation between them but they all resolve around CoreData or the main 
 tableview.
 
 The heaviest load is when I get a bunch of data from a server that is turned 
 into JSON objects and then saved to the database. There can be 200 pretty 
 large dictionaries coming at once and they are all saved to the database in a 
 serial queue, while at the same time, the fetched results controller sends 
 the usual delegate messages to adds those rows to the table view. I would say 
 that 80% of the time, it works just fine, but for about 20% of the loads, 
 some involved object will raise an exception. Since I'm using multiple 
 threads, and as recommended in the doc, I'm using the thread confinement 
 method to perform the needed operations that involve the database and managed 
 objects. I have one managed object context per thread, but there is really 
 only one, in that serial queue, plus the one in the main thread. I implement 
 the didReceiveManagedObjectContextSaveNotification: methods to merge the 
 changes on the main thread, as recommended. I pass object IDs when I need to 
 access a managed object context from one thread to another.
 
 Still, I feel there are way too many crashes.
 
 I have read from older messages that the fetched results controller could get 
 confused when issuing updates, moves and inserts back in iOS 3 and 4. But I 
 haven't found anything that would lead me to believe that these bugs are 
 still present. But, are they? Is it safe to use this technology for some 
 serious database work?
 
 Any advice, pointer or info would be greatly appreciated.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Looking for Direction

2012-11-19 Thread Hunter Hillegas

On Nov 19, 2012, at 12:02 PM, koko k...@highrolls.net wrote:

 1. Register as the preferred application  to open files of a specific type

- Read the Document Programming on iOS Guide - it has info on claiming a file 
type.

 4. Send a file to iCloud

- Ditto on the above guide - it covers all the file presenter and document 
transfer stuff.

 5. Access a file in Dropbox for iOS

Dropbox has an SDK that includes some samples. I've found it very easy to work 
with.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Core Data fetch performance

2012-11-11 Thread Hunter Hillegas
Do you have keyShadow set as indexed in the model? If not, you probably want to 
give that a try.

If you have all of the keys up front (i.e. this is a big batch update or insert 
from the Web Service data), you might consider loading all of the records at 
once and then using a predicate to find what you need. Something like:

//load all possible matches at once
NSFetchRequest *possibleEventsFetchRequest = [[NSFetchRequest alloc] 
initWithEntityName:@MissionEvent]; 
[possibleEventsFetchRequest setPredicate:[NSPredicate 
predicateWithFormat:@keyShadow IN %@, allPossibleKeyShadows]];
NSArray *possibleEvents = [self.managedObjectContext executeFetchRequest: 
possibleEventsFetchRequest error:nil];

//create a filter predicate
NSPredicate *indexMatchPredicate = [NSPredicate predicateWithFormat:@keyShadow 
== %ld, inMEP.mId];

//this now happens in memory
NSManagedObject *matchingObject = [[possibleEvents filteredArrayUsingPredicate: 
indexMatchPredicate] lastObject];

Hunter

On Nov 11, 2012, at 6:42 AM, Rick Mann rm...@latencyzero.com wrote:

 I'm seeing a substantial degradation in Core Data fetch performance after 
 just a few thousand objects, in the simulator on a beefy MacBook Pro.
 
 My app loads data from the web, then uses an integer key in each downloaded 
 record to find the local record in Core Data. So I do a lot of queries like 
 this:
 
 {
NSFetchRequest* req = [[NSFetchRequest alloc] init];
req.fetchLimit = 1;
 
NSManagedObjectContext* moc = self.managedObjectContext;
NSEntityDescription* entity = [NSEntityDescription entityForName: 
 @MissionEvent
  inManagedObjectContext: moc];
req.entity = entity;
 
NSPredicate* pred = [NSPredicate predicateWithFormat: @keyShadow == %ld, 
 inMEP.mId];
req.predicate = pred;
 
NSError*error = nil;
NSArray* events = [self.managedObjectContext executeFetchRequest: req 
 error: error];
...
 }
 
 Basically, I query, the insert, over and over. As the number of records grows 
 from 0 to 6000, the time it takes to execute this query grows from about 
 0.0007 s to about 0.0126 s. Indexing is on for keyShadow:
 
 sqlite explain query plan SELECT 0, t0.Z_PK, t0.Z_OPT, t0.ZCLOCKSHADOW, 
 t0.ZDESC, t0.ZDISABLEDSHADOW, t0.ZDURATIONSHADOW, t0.ZKEYSHADOW, 
 t0.ZLASTMODIFIED, t0.ZNAME, t0.ZSEQUENCESHADOW, t0.ZTIMESHADOW, 
 t0.ZTYPESHADOW, t0.ZMISSION FROM ZMISSIONEVENT t0 WHERE  t0.ZKEYSHADOW = ?
   ... ;
 sele  order  from  deta
   -    
 0 0  0 SEARCH TABLE ZMISSIONEVENT AS t0 USING INDEX 
 ZMISSIONEVENT_ZKEYSHADOW_INDEX (ZKEYSHADOW=?) (~10 rows)
 
 This seems like pretty poor performance. Is this the best I can hope for?
 
 Thanks,
 
 -- 
 Rick
 
 
 
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/cocoa-dev/lists%40lastonepicked.com
 
 This email sent to li...@lastonepicked.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Core Data fetch performance

2012-11-11 Thread Hunter Hillegas
 Do you have keyShadow set as indexed in the model? If not, you probably want 
 to give that a try.
 
 Yeah, the key is indexed (as I pointed out in the original post :-))

Heh, I re-read your post like four times and only just now saw that notation. 
Whoops.

 If you have all of the keys up front (i.e. this is a big batch update or 
 insert from the Web Service data), you might consider loading all of the 
 records at once and then using a predicate to find what you need. Something 
 like:
 
 I do. I was thinking about this last night. I'm concerned that this may 
 require too much memory, and building a string of 6400 IDs for the query to 
 then format...sounds expensive.

It's possible that doing them all in one hit might be too much… As with most 
workloads, you may need to experiment to find a happy medium.

 Can one build IN queries directly?

I'm not entirely sure I know what you mean by 'directly' in this context.

 I currently download on a separate thread, then call back to the main thread 
 for each record. The intent was avoid doing Core Data work on a separate 
 thread, and keep the UI responsive. But that doesn't really enable the second 
 core, and it adds a lot of overhead. Maybe it's time to do the Core Data on 
 the second thread, too. Pretty sure that will require substantial changes to 
 the way my UI keeps up with updates.

GCD, along with the Core Data changes in iOS 5 and 6 for handling concurrency, 
make this much easier than it used to be (or at least cleaner and harder to 
screw up as badly).
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Core Data fetch performance

2012-11-11 Thread Hunter Hillegas
 I do. I was thinking about this last night. I'm concerned that this may 
 require too much memory, and building a string of 6400 IDs for the query to 
 then format...sounds expensive. Can one build IN queries directly?

I should note, I've done this quite successfully with workloads in the ~500 
ID/possible matches range but never something quite as big as you're suggesting.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Core Data fetch performance

2012-11-11 Thread Hunter Hillegas
The API changes came in iOS 5 but in iOS 6 they fixed enough bugs to make it 
work right. :-)

On Nov 11, 2012, at 4:50 PM, Rick Mann rm...@latencyzero.com wrote:

 GCD, along with the Core Data changes in iOS 5 and 6 for handling 
 concurrency, make this much easier than it used to be (or at least cleaner 
 and harder to screw up as badly).
 
 By the way, what were the changes in iOS 6? I can't find specific Core Data 
 notes for iOS 6, only iOS 5. Thanks!


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: UITableView woes

2012-07-02 Thread Hunter Hillegas
Or alternatively, setting the numberOfLines property on the text label to 0 and 
then calculating the height for each row for the string you'll be passing in.

On Jul 2, 2012, at 3:22 PM, Laurent Daudelin laur...@nemesys-soft.com wrote:

 Are you using the standard UITableViewCell or custom cells? I'm assuming they 
 are cut off because the standard cells use a UILabel which displays only one 
 line of text, shrinking it until it reaches the minimum size where, at that 
 point, it just cuts off the rest of the sentence. You will need to use a 
 UITextView most likely in your own subclass of UITableViewCell.
 
 -Laurent.

 On Jul 2, 2012, at 13:49, C.W. Betts wrote:
 
 I'm trying to write an iOS app that displays sentences in a table, but 
 UITableView cuts them off. Will I need to do a custom UITableViewCell or can 
 I make UITableView behave? I want to either display them on two rows or have 
 a scroll bar to see the rest of the sentence. 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iOS icons question

2012-02-12 Thread Hunter Hillegas
Not with anything in the official SDK - nothing you could put in the App Store.

On Feb 12, 2012, at 5:26 PM, Rick C. wrote:

 Hi,
 
 Is there any possibility to rearrange the app icons in iOS programmatically?  
 Thanks,
 
 rc


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Atta Boys, 4 bags-full

2012-01-26 Thread Hunter Hillegas
Glad you were able to solve your problems but it sounds like you were going to 
the wrong places for help.

It's really not the job of App Review to explain how to use the tools, or to 
recommend a specific vendor's third party solution… Sounds like you found the 
forums though, which are perfect for this sort of thing.

On Jan 26, 2012, at 9:12 AM, John Love wrote:

 In addition, I tried and tried to get an App Store rep to tell me how to 
 de-pixelate all my images (one of their complaints leading to rejection).  
 Give me the name of a specific piece of software and I'll try to use it 
 (praying that it wasn't PhotoShop = $$$).  Literally, silence.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: NSFetchRequest Problem Under iOS 4.3.5

2012-01-24 Thread Hunter Hillegas
I believe that initWithEntityName is new in iOS 5.

On Jan 24, 2012, at 11:40 AM, Laurent Daudelin wrote:

 NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] 
 initWithEntityName:@Relationship];


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Serious iPhone 4s iCloud issue

2011-12-02 Thread Hunter Hillegas
The simplest way to see what's in your iCloud account is from a Mac (10.7.2 or 
later).

Go to: ~/Library/Mobile Documents - that's your iCloud 'Documents' storage 
sync'd to your Mac and you can see exactly what is, or isn't there.

On Dec 2, 2011, at 5:18 PM, April wrote:

   I have had iCloud working in my app for a very long time. Today I 
 bought a 4s and after getting everything updated, reprovisioned, built and 
 installed my app, the one I've poured hours of blood sweat and tears in to 
 over icloud, cannot access anything stored on icloud.
 
   I cannot seem to figure out why. But if I attempt to get a listing of 
 the folders in the storage they are all empty. If I create a document it 
 supposidly goes in to icloud but is inaccessible on any other device. and if 
 I delete the app, no matter how long I wait, it tells me there are pending 
 document updates.
 
 Does any one have any ideas on this?
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Use storyboard in iOS app

2011-10-15 Thread Hunter Hillegas
Storyboard is an iOS 5 feature. It will not work on older OS versions.

On Oct 15, 2011, at 7:14 PM, Sasikumar JP wrote:

 Hi,
I am planning to redesign my existing app. I want to use the storyboard 
 for UI development and it should support the older OS starting from 3.2.
 
 I guess storyboard is Xcode 4.2 feature, it should not be any problem to 
 support for older OS.
 
 Anyway I want to conform with you before I start the development.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iPad store ?

2011-09-12 Thread Hunter Hillegas
There's an Enterprise program meant for internal deployments.

http://developer.apple.com/programs/ios/enterprise/

On Sep 12, 2011, at 10:04 AM, Phil Hystad wrote:

 Is there any way to deploy an iPad app other then the AppStore?  I don't mean 
 for development testing or other temporary purposes.
 
 Situation is the development of an application for a particular customer who 
 would use the app for specific in-house purposes.  The app would not be 
 generally available, at least that is the intent.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON Parser

2011-09-08 Thread Hunter Hillegas
I'm a big fan of JSONKit.

https://github.com/johnezang/JSONKit

On Sep 8, 2011, at 10:25 AM, Tom Hohensee wrote:

 I have recently come across the need to handle JSON in an application I am 
 working on for 10.6 and 10.7.  After googling for a parser I came across 
 several of them but some look abandoned.  I am unsure which to pick.  Anyone 
 know of a good current JSON parser for cocoa in 10.6 and 10.7?  
 
 Thanks
 Tom
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Problems with UIAlertView

2011-08-16 Thread Hunter Hillegas
My version of 4.1 is Build 4B110 so it sounds like you're maybe not on the GM 
of 4.1?

On Aug 15, 2011, at 9:45 PM, Laurent Daudelin wrote:

 I'm using Xcode 4.1, build 48103. Crash occurs both on the iPad (running 
 4.3.2) and in the simulator (4.3) although I just discovered that if I click 
 the cancel button of the UIAlertView, my 
 alertView:didDismissWithButtonIndex: is correctly called and it doesn't crash.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Problems with UIAlertView

2011-08-16 Thread Hunter Hillegas
There's a method on UIPopoverDelegate that allows you to tell it NOT to dismiss 
a popover.

something like (BOOL)shouldDismissPopover:(UIPopover *)popover

you can use that to make a popover modal.

On Aug 16, 2011, at 4:09 PM, Laurent Daudelin wrote:

 I'm looking at popovers. I'm wondering if there is any way that I'm 
 overlooking to make popovers modal. So far, in all the samples I looked at, 
 if you just tap outside the popover, it will dismiss. I read about the 
 passthroughViews property. If I set that property to nil, will this prevent 
 the popover from being dismissed?

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Problems with UIAlertView

2011-08-15 Thread Hunter Hillegas
What version of Xcode are you using?

There was a bug very similar to this in earlier beta versions of Xcode 4.1.

On Aug 15, 2011, at 7:45 PM, Laurent Daudelin wrote:

 Instead, I have to click the thread in the thread popup in the path-like 
 control above the console output. Then, I get the stacktrace which actually 
 shows that the crash occured in objc_assign_ivar(), called from [AppleSpell 
 init]-[UITextChecker _checker]-…
 
 Is there anyway to get that real stacktrace in the navigation pane or 
 displayed somewhere like Xcode 3 used to do?
 
 Any idea why the code crashes on 4.3 but not on 3.2?

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] Block animation kills performance

2011-07-31 Thread Hunter Hillegas
Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and 
animateWithDuration:delay:options:animations:completion:?

On Jul 31, 2011, at 4:20 PM, Rick Mann wrote:

 Xcode 3.2.6, iOS 4.3.
 
 My app shows a heartbeat as a flashing red square. Once each second, I 
 execute the following code. If I use the block style, overall performance of 
 the app suffers greatly (the UI becomes unresponsive to touches). If I 
 animate the more traditional way, UI responsiveness seems normal.
 
 This occurs in both the simulator and the device (iPad).
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: In App Purchase's SKProductsRequest not working when App is already installed on the device

2011-03-31 Thread Hunter Hillegas
Are you connecting to the Sandbox environment or production?

I believe you can only connect to Sandbox when launched via Xcode *and* if the 
app is being 'upgraded' from an App Store version, it won't trigger the 
Sandbox. At least, that's a tiny bit of IAP voodoo I've witnessed... That means 
it could cease to be true at any moment, as IAP setup is one sacrificial lamb 
away from being magic.

On Mar 30, 2011, at 6:11 AM, miky...@gmail.com wrote:

 I am having problems testing the In App Purchase feature. If I reinstall the
 app on a device that has already installed the app with a previous version,
 the SKProductsRequest returns a response only with an object on the
 invalidProductIdentifiers. If I delete the app from the device and then
 install the new version again, SKProductsRequest works fine.
 
 Any ideas?
 
 Thanks in advance.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Trace/BPT trap

2011-03-27 Thread Hunter Hillegas
Interesting. I saw something that looked a little similar recently in one of my 
apps.

Curious what version of Xcode and which compiler you're using to build your app?

On Mar 27, 2011, at 3:32 PM, John Brayton wrote:

 Hi,
 
 I am encountering an issue where my app crashes after running for 4-6
 hours.  I don't see a crash report, and the user is not alerted that
 the app has crashed; the app just silently stops running.  This is
 what I see in the Console logs:
 
 3/23/11 2:56:49 PM  com.apple.launchd.peruser.501[111]
 (com.apple.ReportCrash.Self[22101]) Job appears to have crashed:
 Trace/BPT trap
 3/23/11 2:56:49 PM  com.apple.launchd.peruser.501[111]
 (com.apple.ReportCrash[22100]) Job appears to have crashed: Trace/BPT
 trap
 3/23/11 2:56:49 PM  com.apple.launchd.peruser.501[111]
 ([0x0-0x295295].com.goldenhillsoftware.CloudPull[19747]) Job appears
 to have crashed: Trace/BPT trap
 
 I am trying to determine what to look for that would cause a
 Trace/BPT trap.  It seems peculiar that no crash report is ever
 written to the ~/Library/Logs/DiagnosticReports directory.
 
 Any hints or advice would be appreciated.
 
 Thanks.
 
 John

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: $ to Jobs ?

2010-11-23 Thread Hunter Hillegas
It will not.

But if you let your membership expire, you are no longer in the store so if the 
user deletes the app, they can't re-download it.

On Nov 23, 2010, at 2:34 PM, k...@highrolls.net wrote:

 If the app is purchased will it expire as well on a user device?

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Core data fetch and multithreading

2010-11-22 Thread Hunter Hillegas
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 not create one on the main thread and then pass it 
around.

This is also important to keep in mind re: NSOperation, since it's init is 
called on the main thread.

http://www.duckrowing.com/2010/03/11/using-core-data-on-multiple-threads/

On Nov 22, 2010, at 12:16 AM, Quincey Morris wrote:

 I think maybe you have more design options here. For example, you can [in 
 principle, I think] multithread with a single MOC without locks if you pass 
 ownership of the MOC around between threads that make changes, so that 
 ownership serializes access. That requires the ownership passing to be thread 
 safe, and you already have [I think] the perfect mechanism for that: GCD. 
 You'd probably also want to break down your background operations so that 
 enumeration of the relationship doesn't take place within a single GCD block 
 execution, but where each block execution is one iteration of the 
 enumeration. (Isn't that more GCD-like anyway?)

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: iPad: Distribution of documents

2010-11-22 Thread Hunter Hillegas
As far as I know, this is the way to go. For instance, it's a common thing with 
pre-populated Core Data databases that you are going to want to write to.

On Nov 22, 2010, at 3:16 PM, Phillip Mills wrote:

 It seems easy enough to stick them into the main bundle as resources and then 
 copy them on a first execution. 

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iPhone] How to change Default.png Image Dynamically

2010-08-20 Thread Hunter Hillegas
It is not, no. You're not allowed to replace anything in the bundle.

You could start with a black Default.png and then very quickly load your own 
shot into an image view while the rest of your apps loads. Probably depends on 
your use case.

On Aug 20, 2010, at 5:15 AM, Tharindu Madushanka wrote:

 Is it possible to save a screen shot of last running application screen as
 the app loading screen next time..
 
 I see may be Maps iPhone application does something similar to that instead
 loading static Default.png image.
 
 Could someone kindly clarify this ??

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Core Data : Multiuser ?

2010-08-07 Thread Hunter Hillegas
Given those limitations, how does one enable support for a 10.6+ target?

On Aug 6, 2010, at 11:38 PM, Ben Trumbull wrote:

 It possible, but inefficient, for a very limited number of clients to share 
 over AFP.  NFS doesn't work correctly at all.  This is restricted by file 
 caching issues underneath us.  There are a lot of limitations and sharp edges 
 here, so we actively recommend against multiple computers simultaneously 
 accessing the same db.  Support for it is disabled by default for projects 
 built with a deployment target = 10.6

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Core Data : Multiuser ?

2010-08-07 Thread Hunter Hillegas
Which session are we talking about? I'd like to go watch that video and I don't 
recall seeing it.

As for the second bit, I'm not so sure... If they had wanted to port EOF they 
would have just ported EOF. Of course, I could be wrong but I'm not holding my 
breath for robust, multi-user Core Data.

Hunter

On Aug 7, 2010, at 8:43 AM, Brad Gibbs wrote:

 Also, I attended a session at WWDC this year that describes extending Core 
 Data for use in a multi-user environment. I'd have to watch the video again 
 to get the specifics, but, I think the gist of it was to keep a local copy of 
 the data and sync with the server.
 
 I hope rampant speculation about an unannounced OS doesn't run afoul of any 
 NDAs, but, I've got to believe that Apple is working on extending Core Data 
 for use in a multi-user environment.  With iPhone, iPad and desktop users and 
 Apple's recent push into SMB, accessing a central database from each of these 
 devices via Core Data just makes too much sense.  Maybe it isn't exactly Core 
 Data and maybe it's some tie-in to FileMaker, but, I've got to believe it's a 
 priority for them.  It's just too big of a nut to ignore.  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NOAA data feeds

2010-07-20 Thread Hunter Hillegas
Depending on what NOAA data you're looking for, some is here:

http://www.ndbc.noaa.gov/data/realtime2

It's all fixed delimiter so it's not hard to parse.

On Jul 18, 2010, at 11:52 AM, Charlie Dickman wrote:

 I apologize if this question is off topic; if it is could someone assist me 
 with where I might find an answer.
 
 I'm looking for URL information and, if possible, examples of how to get NOAA 
 weather advisory information via wifi into a Cocoa application.
 
 Any help would be gratefully appreciated.
 
 
 Charlie Dickman
 3tothe...@comcast.net
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Howdy,

Trying to crank out a real Cocoa app as an experiment - usually spend my time 
doing Cocoa Touch.

Anyway, I have a pretty simple set of models:

Accounts-Items

I want to setup a screen with a table of accounts. When you click on an 
account, you see a table of items, click on an item, see it's detail. Simple.

My question is if I can do this all with bindings. The table of accounts works 
fine. What I can't seem to figure out is how to limit the 'Items' in the second 
NSTableView to just be the ones associated with the selected account, using 
bindings.

Is there a way to do so? I see I can set a fetch predicate for the 
NSArrayController that is controlling the items but I'm not sure how to 
reference the selected account in the 'account' table view to limit the 
contents of the second NSTableView - if that's even possible... Or 
alternatively, just have the items NSTableView show entities that are in the 
'items' relationship of the selected account. Seems like a pretty simple use 
case but I'm missing the magic.

I can see a path by subclassing NSArrayController but I was hoping to do it all 
with bindings if I could - I just don't know enough to know which way to go or 
if I should just break out the code.

Any help appreciated.

Cheers,
Hunter___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Hi Quincey,

I did read this page - but I'm not sure it does what I want because it's only 
2/3rds of my interface. The master-detail explained there works fine for my 
items list and to display the selected item's properties but I need the list of 
items (the master in Apple's example) to be the result of another relationship 
(the accounts - each account can have zero to many items). So almost as 
master-master-detail, even though that's a terrible term.

Does that make more sense?

On Dec 28, 2009, at 4:14 PM, Quincey Morris wrote:

 On Dec 28, 2009, at 15:32, Hunter Hillegas wrote:
 
 My question is if I can do this all with bindings. The table of accounts 
 works fine. What I can't seem to figure out is how to limit the 'Items' in 
 the second NSTableView to just be the ones associated with the selected 
 account, using bindings.
 
 If I understand your question correctly, the usual way is to bind the detail 
 NSArrayController's content via the master NSArrayController's selection 
 property. See:
 
   
 http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaBindings/Tasks/masterdetail.html
 
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/lists%40lastonepicked.com
 
 This email sent to li...@lastonepicked.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Yes, that's exactly it. Dual level master detail.

For whatever reason, the part I just couldn't see in my head was how to wire up 
the second NSArrayController to accountsController.selection.items.

Thank you so much - just needed that little kick to get to the next step. 
Appreciate it.

On Dec 28, 2009, at 7:38 PM, Quincey Morris wrote:

 On Dec 28, 2009, at 16:19, Hunter Hillegas wrote:
 
 I did read this page - but I'm not sure it does what I want because it's 
 only 2/3rds of my interface. The master-detail explained there works fine 
 for my items list and to display the selected item's properties but I need 
 the list of items (the master in Apple's example) to be the result of 
 another relationship (the accounts - each account can have zero to many 
 items). So almost as master-master-detail, even though that's a terrible 
 term.
 
 Actually, your items are the *detail* for the account, and then possibly the 
 master for another detail interface.
 
 So, let's say you have a NSTableView listing accounts, a second NSTableView 
 listing items in the accounts list's selection, and a set of text fields, etc 
 showing more details of the item(s) selected in the item list.
 
 The accounts list uses a NSArrayController whose content is bound to the 
 accounts (array if not Core Data, set if Core Data) in your data model.
 
 Columns in your accounts list would be bound to 
 accountsController.arrangedObjects.whateverAccountProperty.
 
 The items list uses a second NSArrayController whose content is bound to 
 accountsController.selection.items. This represents the items in the selected 
 account, or possibly in the selected accounts. (In NSControllerland, there's 
 really no distinction between a single object or multiple objects, until 
 later in the process -- each eventual UI element deals with the problem of 
 how to display multiple items. There's also an option somewhere that controls 
 how the items are merged if there are multiple selected accounts, but if your 
 items are unique to an account, the result would be the same.)
 
 Columns in your items list would be bound to 
 itemsController.arrangedObjects.whateverItemProperty.
 
 Item detail elements like text fields -- if you want them -- would be bound 
 to itemsController.selection.whateverItemProperty. Such user interface 
 elements would then display the value of the item selected in the items list. 
 If there are multiple items selected, then the binding options for multiple 
 values selections kick in.
 
 So your interface is not so much master-master-detail as dual-level 
 master-detail.
 
 There's probably an alternative way of approaching this, by programmatically 
 maintaining a fetch request for the items array controller, based on 
 monitoring the selection of the account array controller, but I can't think 
 of any obvious way to do this without writing code. (A few lines of code, but 
 code nevertheless.) Chaining array controllers, and using the arrangedObjects 
 or selection properties as appropriate, should allow you to design the 
 interface codelessly.
 
 Does that sound like what you need? There was a different tutorial that 
 explored some of this, but I can't find it any more.
 
 
 ___
 
 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/lists%40lastonepicked.com
 
 This email sent to li...@lastonepicked.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com