Pagecontrol from plist??

Hi all,
I'm new to programming, tried using apples sample code on pagecontrol and it's pretty good. But how do I get my app to count the number of images i have in my plist automatically?? any help would be greatly appreciated! thanks in advance!

Hi sptrakesh!  thanks for replying! I changed the plist from apple's sample code to :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
          <dict>
                    <key>imageKey</key>
                    <array>
                              <string>small_one.png</string>
                              <string>small_two.png</string>
                              <string>small_three.png</string>
                              <string>small_four.png</string>
                              <string>small_five.png</string>
                    </array>
          </dict>
</array>
</plist>
is that correct?? i intend to use multiple arrays as i will have a few sets of images..hope i did it correctly.  how do i read my plist? and what is the "count message"??
Message was edited by: jambanjuice

Similar Messages

  • Cinema display serial number from plist

    Hi, I need help getting my cinema display serial number from an old Plist file.  My office was broken into recently and someone made off with the monitor.  It's a long shot but I thought I could find the serial number for the campus police.  I was able to find an old com.apple.windowserver.plist file that had some information for the display.  I tried the command <defaults read ./com.apple.windowserver.plist> and came up with the following.  Problem is they don't look like serial numbers for a cinema display.  Any suggestions? 
                    DisplayID = 69530633;
                    DisplayProductID = 37430;
                    DisplaySerialNumber = 42039688;
                    DisplayVendorID = 1552;

    Hi ,
    Go to /Library/Preferences/com.apple.windowserver.plist. Open this with TextWrangler or a similar utility. Look for a DisplaySerialNumber key with an integer value that isn't 0. With any luck, this should be the s/n of your display.
    If you haven't used this display for a while, the records of it may be gone.
    Also, it appears that this isn't guaranteed. Double-check if possible.

  • Random presentation of images from plist.

    Hello all, my name is Merlin and of course... Im new to this! LOL Ive been teaching myself Obj-C and Cocoa for the better part of 5 months now, and I have to say... I found my path. I absolutely love it and cant wait till I feel more comfortable with the methodology. But enough about me!
    Im working on a Q&A based app. To get the UI to look EXACTLY the way I wanted it to, I designed all of the questions in Photoshop. These questions range in topic but normally ask you to tap on something specific in the image. Picture an image with a bunch of dogs and the prompt "tap the boxer..."
    I then have 2 custom buttons in IB, one covers the entire screen name "incorrectButton" and another named "correctButton" placed over the spot in the image that is the "correct" location.
    I have a HomePageViewController with a start button that loads Question1ViewController with the previously mentioned background UIImageView. Im using presentModalVC to load the question image with a nice UIModalTransCrossDissolve.
    Question1ViewController...
    "Tap on the boxer"...
    User taps incorrect location is sent to my IncorrectResponseViewController which states "Sorry, try again" and pops automatically after a 2 second delay.
    User taps correct location is sent to my CorrectResponseViewController which states "That is correct!" and unhides a nextButton. Pressing it implements nextButtonPressed which takes you to Question2ViewController (again by presenting it Modally). Question2ViewController then had a nib with question2.png loaded as the background and a new button layout to correspond to the new "correct" location.
    Since the method to call this "next" question is "nextButtonPressed", I soon realized I would never be able to get past Question2 unless I created some kind of loop and store the questions in a plist or Core Data.
    This is where I started to investigate loading all of my question images (or just their file names as an NSString) into a plist and using the same nib to present them all. I figured I could also store the "correctButton" coordinates as a Dictionary in that plist and call those in a setFrame method when I want to present the next question.
    So I have my plist built and I think it's correct...
    [TIMG]http://img.photobucket.com/albums/v686/FJMerlin/Screenshot2010-09-14at20550PM.pn g[/TIMG]
    I also created a Constants file with the following keys...
    #define BACKGROUNDIMAGE_KEY @"backgroundImage"
    #define CORRECTBUTTONLOCATION_KEY @"correctButtonLocation"
    #define XBUTTONLOC_KEY @"x"
    #define YBUTTONLOC_KEY @"y"
    #define WBUTTONLOC_KEY @"w"
    #define HBUTTONLOC_KEY @"h"
    So this is where my noobism shines through. Im having one **** of a time getting the values out of this plist and onto the screen. What I would like to do is load all (100 as of now) the questions into this plist. Then present the QuestionsViewController and have it randomly present the question Images. Upon selecting the correct location, modally present the CorrectResponseViewController with the nextButton, and have the nextButtonPressed method return you to QuestionsViewController with a new question and button layout. As of now, Im mostly concerned with getting anything out of the plist to work before I worry about randomizing the questions.
    Ive attempted to call these values a few different ways.
    .h
    @interface Q1ViewController : UIViewController {
    IBOutlet UIImageView *backgroundImage;
    IBOutlet UIButton *backButton;
    IBOutlet UIButton *correctButton;
    IBOutlet UIButton *incorrectButton;
    IBOutlet UIButton *nextButton;
    NSMutableArray *questions;
    NSMutableArray *buttonCorridinates;
    @property (nonatomic, retain) IBOutlet UIImageView *backgroundImage;
    @property (nonatomic, retain) IBOutlet UIButton *backButton;
    @property (nonatomic, retain) IBOutlet UIButton *nextButton;
    @property (nonatomic, retain) IBOutlet UIButton *correctButton;
    @property (nonatomic, retain) IBOutlet UIButton *incorrectButton;
    @property (nonatomic, retain) NSMutableArray *questions;
    @property (nonatomic, retain) NSMutableArray *buttonCorridinates;
    - (IBAction) backButtonPressed:(id) sender;
    - (IBAction) nextButtonPressed:(id) sender;
    - (IBAction) correctButtonPressed:(id) sender;
    - (IBAction) incorrectButtonPressed:(id) sender;
    @end
    .m
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
    [super viewDidLoad];
    backButton.hidden = YES;
    nextButton.hidden = YES;
    NSString *path = [[NSBundle mainBundle] pathForResource:@"Questions" ofType:@"plist"];
    NSMutableArray* tmpArray = [[NSMutableArray alloc] initWithContentsOfFile:path];
    self.questions = tmpArray;
    [tmpArray release];
    UIImage *tmpImage = [UIImage objectForKey:BACKGROUNDIMAGE_KEY];
    [backgroundImage setImage: tmpImage];
    [correctButton setFrame:CGRectMake(20.0f,226.0f,192.0f,37.0f)];
    [tmpImage release];
    NSString *correctButtonLoc = [[NSString alloc] intValue:CORRECTBUTTONLOCATION_KEY];
    [correctButton setFrame:CGRectMake(@"%@"),correctButtonLoc];
    //or this.... LOL
    UIImageView *tmpImage = [[UIImageView alloc] initWithImage:@"%@", BACKGROUNDIMAGE_KEY];
    [backgroundImage setImage:tmpImage];
    NSString *xButtonLoc = [[NSString intValue[questions objectForKey:XBUTTONLOC_KEY]];
    NSString *yButtonLoc = [[NSString intValue[questions objectForKey:YBUTTONLOC_KEY];
    NSString *wButtonLoc = [[NSString intValue[questions objectForKey:WBUTTONLOC_KEY];
    NSString *hButtonLoc = [[NSString intValue[questions objectForKey:HBUTTONLOC_KEY];
    [correctButton setFrame:CGRectMake(@"%@","%@","%@","%@") xButtonLoc, yButtonLoc, wButtonLoc, hButtonLoc];
    I feel like I know what to do, I just dont know how to do it. I have the image paths stored in the plist, so I obviously need to call those paths then convert them to the actual image, am I on the right track in that thinking?
    For the coordinates, I also have those stored as strings. So Im sure the same holds true. Need to convert those to ints to set my frame. But again, no matter how many time I read through the string formatting guide, I still cant seem to luck into this one.
    Once I have this figured out. Ill want to have something very similar to the randomizing plist code from James' FlashCard app which I found in another thread. http://discussions.apple.com/thread.jspa?threadID=2542025
    RayNewbie was kind enough to point me in the right direction to start my own thread so here I am!
    I hope this isnt to long winded. I wanted to be detailed. Thanks in advance for any guidance.

    ok, been at it for half the day already and cant seem to get the shuffleArray method to work with my code. I did tweak some things to make it more similar to the construct of James' FlashCard app.
    I did away with my Correct and IncorrectViewControllers. I changed the methods for pressing those buttons to simply change the background image to the appropriate response as well as unhide the next and back buttons to allow these controls to reside in the same VC. Here is how I have it now...
    @implementation QuestionsViewController
    @synthesize backgroundImage;
    @synthesize backButton;
    @synthesize nextButton;
    @synthesize correctButton;
    @synthesize incorrectButton;
    @synthesize questions;
    @synthesize counter;
    - (void)dealloc {
         [backgroundImage release];
         [backButton release];
         [nextButton release];
         [correctButton release];
         [incorrectButton release];
         [questions release];
         [super dealloc];
    -(void) viewWillAppear:(BOOL)animated {
         [super viewWillAppear:animated];
         nextButton.hidden = YES;
         backButton.hidden = YES;
    - (void) enableButton {
         int count = [questions count];
         nextButton.enabled = counter < count - 1 ? YES : NO;
         backButton.enabled = counter > 0 ? YES : NO;
    // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
        if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
            // Custom initialization
        return self;
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
         [super viewDidLoad];
         NSString *path = [[NSBundle mainBundle] pathForResource:@"Questions" ofType:@"plist"];
         NSLog(@"%s: path=%@", __func__, path);
         NSMutableArray* tmpArray = [[NSMutableArray alloc]initWithContentsOfFile:path];
         self.questions = tmpArray;
         [tmpArray release];
         [self reset];     
    - (void)shuffleArray:(NSMutableArray*)array {
         int total = [array count];
         if (total <= 1)
              return;
         NSMutableArray *poolArray = [[NSMutableArray alloc] initWithArray:array];
         [array removeAllObjects];
         for (int i = 0; i < total; i++) {
              int index = random() % [poolArray count];
              [array addObject:[poolArray objectAtIndex:index]];
              [poolArray removeObjectAtIndex:index];
    - (IBAction)reset {
         srandomdev();
         counter = 0;
         [self shuffleArray:questions];
         if ([questions count]) {
              NSDictionary *Question = [questions objectAtIndex:counter];
              NSString *imageFileName = [Question objectForKey:@"backgroundImage"];
              UIImage *bkgdImage = [UIImage imageNamed:imageFileName];
              [backgroundImage setImage:bkgdImage];
              NSDictionary *correctPts = [Question objectForKey:@"correctButtonLocation"];
              CGRect correctRect = CGRectMake(
                                                      [[correctPts objectForKey:@"x"] doubleValue],
                                                      [[correctPts objectForKey:@"y"] doubleValue],
                                                      [[correctPts objectForKey:@"w"] doubleValue],
                                                      [[correctPts objectForKey:@"h"] doubleValue]
              [correctButton setFrame:correctRect];
         } else {
              [backgroundImage setImage:nil];     
         [self enableButton];
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
         // Return YES for supported orientations
         return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
    - (IBAction) correctButtonPressed:(id) sender {
         NSLog(@"correct button pressed");
         nextButton.hidden = NO;
         backButton.hidden = NO;
         UIImage *correctImage = [UIImage imageNamed:@"thatIsCorrect.png"];
         [backgroundImage setImage:correctImage];
         [correctImage release];
    - (IBAction) nextButtonPressed:(id)sender {
         NSLog(@"Next button pressed");
         int count = [questions count];
         if (counter < count - 1) {
              NSDictionary *nextItem = [self.questions objectAtIndex:++counter];
              NSString *imageFileName = [nextItem objectForKey:@"backgroundImage"];
              UIImage *bkgdImage = [UIImage imageNamed:imageFileName];
              [backgroundImage setImage:bkgdImage];
              NSDictionary *correctPts = [nextItem objectForKey:@"correctButtonLocation"];
              CGRect correctRect = CGRectMake(
                                                      [[correctPts objectForKey:@"x"] doubleValue],
                                                      [[correctPts objectForKey:@"y"] doubleValue],
                                                      [[correctPts objectForKey:@"w"] doubleValue],
                                                      [[correctPts objectForKey:@"h"] doubleValue]
              [correctButton setFrame:correctRect];
         [self enableButton];
    - (IBAction) incorrectButtonPressed:(id) sender {
         NSLog(@"incorrect button pressed");
         IncorrectResponseViewController *incorrectResponseViewController = [[IncorrectResponseViewController alloc] initWithNibName:@"IncorrectResponseViewController" bundle:nil];
         incorrectResponseViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
         [self presentModalViewController:incorrectResponseViewController animated:YES];
         [incorrectResponseViewController release];
    - (IBAction) backButtonPressed:(id) sender {
         NSLog(@"Back button pressed");
         if (counter > 0) {
              NSDictionary *nextItem = [self.questions objectAtIndex:--counter];
              NSString *imageFileName = [nextItem objectForKey:@"backgroundImage"];
              UIImage *bkgdImage = [UIImage imageNamed:imageFileName];
              [backgroundImage setImage:bkgdImage];
              NSDictionary *correctPts = [nextItem objectForKey:@"correctButtonLocation"];
              CGRect correctRect = CGRectMake(
                                                      [[correctPts objectForKey:@"x"] doubleValue],
                                                      [[correctPts objectForKey:@"y"] doubleValue],
                                                      [[correctPts objectForKey:@"w"] doubleValue],
                                                      [[correctPts objectForKey:@"h"] doubleValue]
              //NSLog(@"Question %d:\n\timageFileName=%@\n\tcorrectRect=%@", count++, imageFileName, NSStringFromCGRect(correctRect));
              [correctButton setFrame:correctRect];
         [self enableButton];     
    - (void)didReceiveMemoryWarning {
        // Releases the view if it doesn't have a superview.
        [super didReceiveMemoryWarning];
        // Release any cached data, images, etc that aren't in use.
    - (void)viewDidUnload {
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    @end
    The only issue I was having was with "counter" which I see in James' .m file but I wasnt sure what the ivar was. So I used your recommendation Ray and searched all his posts here on the forum and found that it was an fact an int. Now it appears everything is actually working! I just need to tweak the UI to hide and unhide my back and next buttons consistently but so far this is exactly what I was looking for.
    Next up I have to figure out how to convert the coordinates to landscape so my correctButton lands up in the right spot and of course... score keeping! LOL
    Thanks again Ray!

  • How to get itemChild Array from plist into table 2 ?????

    Hi there,
    I am creating a project for the IPhone, using UITableViews.
    I have been looking at James' code and trying to adapt it.
    My project has two tableviews, and two tableview controllers. THe plist is an Array of dictionaries and each dictionary houses a name string and an ItemChild Array.
    The dictionary names go into the first table no problem but I can get the ItemChild Arrays into the second table.
    here is the shape of the plist.
    <array>
    <dict>
    <key>name</key>
    <string>Category A</string>
    <key>ItemChild</key>
    <array>
    <string>aaaa</string>
    <string>bbbb</string>
    <string>cccc</string>
    <string>dddd</string>
    </array>
    </dict>
    <dict>
    <key>name</key>
    <string>Category B</string>
    <key>ItemChild</key>
    <array>
    <string>aaaa</string>
    <string>bbbb</string>
    <string>cccc</string>
    <string>dddd</string>
    </array>
    </dict>
    <dict>
    <key>name</key>
    <string>Category C</string>
    <key>ItemChild</key>
    <array>
    <string>aaaa</string>
    <string>bbbb</string>
    <string>cccc</string>
    <string>dddd</string>
    </array>
    </dict>
    </array>
    </plist>
    here are the implementation files for the first and second tableviewControllers
    @implementation TableTutViewController
    @synthesize dataList1;
    - (void)viewDidLoad {
    [super viewDidLoad];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"newData" ofType:@"plist"];
    NSMutableArray* tmpArray = [[NSMutableArray alloc]
    initWithContentsOfFile:path];
    self.dataList1 = tmpArray;
    [tmpArray release];
    #pragma mark -
    #pragma mark Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return dataList1.count;
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
    reuseIdentifier:CellIdentifier] autorelease];
    cell.textLabel.text = [[self.dataList1 objectAtIndex:indexPath.row]
    objectForKey:@"name"]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    return cell;
    #pragma mark -
    #pragma mark Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    SecondViewController *secondViewController = [[SecondViewController alloc]
    initWithNibName:@"SecondViewController" bundle:nil];
    secondViewController.dataList1 = [[self.dataList1 objectAtIndex:indexPath.row]objectForKey:@"ItemChild"];
    [self.navigationController pushViewController:secondViewController animated:YES];
    [secondViewController release];
    #pragma mark -
    #pragma mark Memory management
    - (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    - (void)viewDidUnload {
    - (void)dealloc {
    [super dealloc];
    @end
    And here is the code for the secondViewController
    #import "SecondViewController.h"
    #import "TableTutAppDelegate.h"
    #import "TableTutViewController.h"
    @implementation SecondViewController
    @synthesize dataList1;
    - (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    - (void)viewDidUnload {
    #pragma mark Table view methods
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return [self.dataList1 count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
    cell.textLabel.text = [[self.dataList1 objectAtIndex:indexPath.row]
    objectForKey:@"ItemChild"];
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    return cell;
    - (void)dealloc {
    [dataList1 release];
    [super dealloc];
    @end
    Any idea's on what is missing would be great. Do I need to create a new array to put the itemChild array into before loading it into the cell.textLabel.text??
    Any help would be fantastic,
    thanks
    Alex
    Message was edited by: alex200

    Hey Alex, welcome to the Dev Forum!
    alex200 wrote:
    I have been looking at James' code and trying to adapt it.
    Have you been looking at James as well? I'm wondering if you two are at the same school.
    The dictionary names go into the first table no problem but I can get the ItemChild Arrays into the second table.
    Actually you passed the ItemChild arrays correctly (assuming dataList1 is declared as shown), but when you wanted the name for each element, you forgot that ItemChild was an array of strings, not an array of dictionaries:
    // SecondViewController.h
    @interface SecondViewController : UITableViewController {
    NSMutableArray *dataList1;
    @property (nonatomic, retain) NSMutableArray *dataList1;
    @end
    // SecondViewController.m
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    cell.textLabel.text = [self.dataList1 objectAtIndex:indexPath.row]; // <-- dataList1 is an array of strings
    // objectForKey:@"ItemChild"];
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    return cell;
    Other than the above, there wasn't much to correct. I just set the title of the first controller's nav item, since that's needed to display the default return button in the second controller's nav bar (but you probably had set that title in IB), and I also passed the name of the selected Category row to the second controller's nav item:
    // TableTutViewController.m
    - (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"Categories"; // <-- added in case title isn't in xib
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    SecondViewController *secondViewController = [[SecondViewController alloc]
    initWithNibName:@"SecondViewController" bundle:nil];
    secondViewController.dataList1 =
    [[self.dataList1 objectAtIndex:indexPath.row]objectForKey:@"ItemChild"];
    secondViewController.navigationItem.title =
    [[self.dataList1 objectAtIndex:indexPath.row]objectForKey:@"name"]; // <-- add title
    [self.navigationController pushViewController:secondViewController animated:YES];
    [secondViewController release];
    Overall it looks like you did a nice job. I think ItemChild was an array of dictionaries in James' plist, so that might be the reason your code matched his plist instead of yours.
    - Ray

  • IB 3.1.2 crash: seems to be from plist info

    I hope this is the right place for this question. I have just started to use IB, so please forgive my lack of basic knowledge regarding it. IB is crashing for me and not for other users on my laptop. I'm sure this must be just as simple as removing a Library/Preferences folder. I just don't know which one. I have read in this topic that doing a removal of /Developer can help this. I have done so and get the same results. When I move my entire ~/Library/Preferences out of the way, the problem indeed goes away.
    It looks as if it reads the plugin and AppKit and then dies. So I will try to look for appkit settings next. The thread trace back is here:
    Date/Time: 2009-08-03 12:34:40.181 -0400
    OS Version: Mac OS X 10.5.7 (9J61)
    Report Version: 6
    Anonymous UUID: 18F93778-7497-4F66-BF78-95F618481B21
    Exception Type: EXCBADACCESS (SIGBUS)
    Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000010
    Crashed Thread: 0
    Thread 0 Crashed:
    0 com.apple.CoreFoundation 0x92c90254 CFRetain + 36
    1 com.apple.HIToolbox 0x92a2b472 TThemeFont::SetCTFont(__CTFont const*) + 62
    2 com.apple.HIToolbox 0x92a2b400 TThemeSpecifiedFont::Init(THIThemeTextInfo const*) + 32
    3 com.apple.HIToolbox 0x92938c9b ThemeFontCreate(THIThemeTextInfo const*) + 239
    4 com.apple.HIToolbox 0x92938b6d TThemeText::ConstructThemeFontWithFontID(__CFString const*, THIThemeTextInfo const*) + 79
    5 com.apple.HIToolbox 0x92938a31 TCoreTextEngine::Init(void const*, THIThemeTextInfo const*) + 159
    6 com.apple.HIToolbox 0x92938769 TThemeTextCache::Create(void const*, THIThemeTextInfo const*) + 177
    7 com.apple.HIToolbox 0x92938641 ThemeTextCreate(void const*, THIThemeTextInfo const*) + 33
    8 com.apple.HIToolbox 0x9293839d DataEngine::GetTextDimensions(void const*, float, HIThemeTextInfo*, float*, float*, float*) + 289
    9 com.apple.HIToolbox 0x92938238 HIThemeGetTextDimensions + 202
    10 com.apple.HIToolbox 0x92ad7aad HIClockView::CalculateTextDimensions() + 133
    11 com.apple.HIToolbox 0x92ad7c82 HIClockView::GetOptimalSizeSelf(CGSize*, float*) + 118
    12 com.apple.HIToolbox 0x92974479 HIView::SendGetOptimalBounds(CGRect*, float*) + 151
    13 com.apple.HIToolbox 0x929743b9 HIView::GetOptimalSize(CGSize*, float*) + 53
    14 com.apple.HIToolbox 0x929c7c3d GetBestControlRect + 105
    15 ...terfaceBuilder.CarbonPlugin 0x16b0c27a IBWindowForHostingCarbonControls + 9638
    16 ...terfaceBuilder.CarbonPlugin 0x16b0cb1f IBWindowForHostingCarbonControls + 11851
    17 ...terfaceBuilder.CarbonPlugin 0x16b0d766 IBWindowForHostingCarbonControls + 14994
    18 ...terfaceBuilder.CarbonPlugin 0x16b0e7c8 IBWindowForHostingCarbonControls + 19188
    19 ...terfaceBuilder.CarbonPlugin 0x16b0617a 0x16b00000 + 24954
    20 com.apple.InterfaceBuilderKit 0x002c65e0 -IBLibraryObjectTemplate classesOfPasteboardObjects + 194
    21 com.apple.InterfaceBuilderKit 0x002c64b9 -IBLibraryController typeSummaryForObjectTemplate: + 106
    22 com.apple.InterfaceBuilderKit 0x002c5fc4 -IBLibraryController createAssetForTemplate:inNamespace: + 554
    23 com.apple.InterfaceBuilderKit 0x002c4fe3 -IBLibraryController createAssetsFromTemplatesInNibNamed:forPlugin: + 746
    24 com.apple.InterfaceBuilderKit 0x002c499e -IBLibraryController loadLibraryObjectsForPlugin: + 287
    25 com.apple.InterfaceBuilderKit 0x002c414e -IBPlugin didLoad + 480
    26 ...terfaceBuilder.CarbonPlugin 0x16b0566f 0x16b00000 + 22127
    27 com.apple.InterfaceBuilderKit 0x002c389f -IBPluginController loadPluginAtPath:error: + 2809
    28 com.apple.InterfaceBuilder3 0x00002345 0x1000 + 4933
    29 com.apple.AppKit 0x9434e333 -NSApplication run + 83
    30 com.apple.AppKit 0x9431b834 NSApplicationMain + 574
    31 com.apple.InterfaceBuilder3 0x00004eca 0x1000 + 16074

    Also, I had done the iPhone OS 3.0.1 update today by creating the symlink the doc asks for.
    ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) \
    /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1
    What I see in that dir is now a .dmg file. Does that seem like it's expected?

  • How to disable Leap Motion app from startup?

    Hi, I installed the Leap Motion on my Mac running Mountain Lion. Whenever my computer boots up, the Leap Motion app automatically starts up as well. I tried checking the specific settings of Leap Motion but there was no configuration there. I also tried to look on the Startup Items (System Preferences > Users & Groups) but there was no entry regarding Leap Motion.
    Is there another way to check how to disable this from happening?
    Thanks.

    You will find a line item
    com.leapmotion.Leap-Motion.plist
    Library/LaunchAgents
    Just rename from .plist to .bak - incase you would like to auto startup again.
    I believe Leap Motion chose to use LaunchAgent rather than 'Login Items' is because they couldn't get it to startup all the time.

  • Action to export cells to rtf

    Not sure if this is possible but I am looking to create an action to save individual cells to rtf files maintaining formatting.
    Consider the following
    _EN
    _DE
    KEY_HELP
    Help
    Helfen
    KEY_ABOUT
    about
    über
    What I would like to do from the above is create 4 rtf files named
    KEY_HELP_EN
    KEY_HELP_DE
    KEY_ABOUT_EN
    KEY_ABOUT_DE
    And each should only contain the cell contents but crucially maintain the formatting.
    Is this possible with Numbers?
    If it isn't, would you know of some other software that can do this?

    Hello
    You can directly store NSData representing NSAttributedString in plist file by the following steps:
    a) create NSData by NSAttributedString's -RTFFromRange:documentAttributes:
    b) create NSDictionay for collection of key = label (NSString) and value = localised attributed string (NSData)
    c) create plist data by NSPropertyListSerialization's +dataWithPropertyList:format:options:error:
    d) creat plist file by NSData's -writeToFile:atomically:
    and restore NSAttributedString from NSData in plist file by the following steps:
    e) create NSDictionay from plist file by NSDictionary's +dictionaryWithContentsOfFile:
    f) get NSData (localised attributed string) for given key (label)
    g) create NSAttributedString from the NSData by NSAttributedString's -initWithData:options:documentAttributes:error:
    So I think you need only one plist file instead of 3K+ rtf files in order to store the given matrix data in spreadsheet.
    The applescript 1 below, which is a simple wrapper of ruby script using rubycocoa, will generate such plist file. First copy the target range in Numbers v2 spreadsheet into clipboard and then run the script and it will create a plist file named out.plist on desktop.
    Script is tested with Numbers 2.0.5 under OSX 10.6.5. I don't know whether it works with Numbers v3 or not. If Numbers v3 does copy rtf representation of the selected range to clipboard as Numbers v2 does, it likely will work. Otherwise not, for the script retrieves table data based upon text box structure in rtf in clipboard. As for 10.9, which I don't use myself, I implemented a code to switch ruby interpreter to v1.8 by specifying the full path under 10.9 because rubycocoa only works with ruby 1.8 and default ruby under 10.9 is reportedly ruby 2.0.
    --applescript 1
    set outfile to (path to desktop)'s POSIX path & "out.plist"
    considering numeric strings
        set |<10.9| to (system info)'s system version < "10.9"
    end considering
    if |<10.9| then
        set ruby to "/usr/bin/ruby"
    else
        set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
    end if
    do shell script ruby & " <<'EOF' - " & outfile's quoted form & "
    # get table data from rtf in clipboard and create plist file representing the matrix such that
    #     key = row header ( cell [i, 0] ) + column header ( cell [0, j] )
    #     value = NSData representing cell [i, j]'s value as NSAttrubuted string (i, j > 0)
    # usage
    #     copy range of Numbers table, run this script
    #     and it will create plist file of dictionary with the following contents:
    #         key = row header ( cell [i, 0] ) + column header ( cell [0, j] )
    #         value = NSData representing cell [i, j]'s value as NSAttrubuted string (i, j > 0)
    #     where i, j are 0-based and relative to the origin of the selected range
    require 'osx/cocoa'
    include OSX
    def table_data_pboard_to_plist(plistf)
        #     string plistf : poisx path of resulting plist file
        # get rtf data from clipboard
        pb = NSPasteboard.generalPasteboard
        pbtype = pb.availableTypeFromArray(['public.rtf'])
        raise RuntimeError, %[rtf data not found in the clipboard] if pbtype == nil
        data = pb.dataForType(pbtype)
        # make mutable attributed string from rtf data
        mas = NSMutableAttributedString.alloc.objc_send(
            :initWithRTF, data,
            :documentAttributes, nil)
        # retrieve data from table in rtf
        tr = NSMakeRange(0, mas.length)
        i0 = 0
        aa, rr = [], []
        while tr.length > 0
            er = NSRange.new
            attr = mas.objc_send(
                :attribute, NSParagraphStyleAttributeName,
                :atIndex, tr.location,
                :longestEffectiveRange, er,
                :inRange, tr)
            tbks = attr.textBlocks.to_a
            if tbks.length > 0
                i = tbks[0].startingRow
                er1 = NSRange.new
                er1.length = er.length - 1
                er1.location = er.location
                d = mas.attributedSubstringFromRange(er1)            # remove trailing LF
                d.objc_send(
                    :removeAttribute, NSParagraphStyleAttributeName,
                    :range, NSMakeRange(0, d.length))                # remove paragraph style (especially text block structure)
                d.fixAttributesInRange(NSMakeRange(0, d.length))    # cleanup attributed string
                if i != i0
                    aa << rr
                    rr = [] << d
                    i0 = i
                else
                    rr << d
                end
            end
            tr = NSMakeRange(NSMaxRange(er), tr.length - er.length)
        end
        aa << rr if rr.length > 0
        # build hash
        hash = {}
        (1 .. aa.length - 1).each do |i|
            ki = aa[i][0].string.to_s
            next unless ki.length > 0
            (1 .. (aa[i].length) -1).each do |j|
                kj = aa[0][j].string.to_s
                next unless kj.length > 0
                k = ki + kj
                m = aa[i][j]
                v = m.objc_send(
                    :RTFFromRange, NSMakeRange(0, m.length),
                    :documentAttributes, nil)
                hash[k] = v
            end
        end
        # create and write plistdata
        err = OCObject.new
        plistdata = NSPropertyListSerialization.objc_send(
            :dataWithPropertyList, hash.to_ns,
            :format, NSPropertyListXMLFormat_v1_0,
            :options, 0,
            :error, err)
        plistdata.objc_send(
            :writeToFile, plistf,
            :atomically, false)   
    end
    # main
    raise ArgumentError, %[Usage: #{File.basename($0)} <output plist file>] unless ARGV.length == 1
    table_data_pboard_to_plist(ARGV[0])
    EOF
    -- end of applescript 1
    And, in case, the applescript 2 below is a sample code to retrieve attributed string from plist file. It will read the out.plist created by applescript 1 and write the out.rtf on desktop which simply shows the key = value pairs as rich text.
    -- applescript 2
    set infile to (path to desktop)'s POSIX path & "out.plist"
    set outfile to (path to desktop)'s POSIX path & "out.rtf"
    considering numeric strings
        set |<10.9| to (system info)'s system version < "10.9"
    end considering
    if |<10.9| then
        set ruby to "/usr/bin/ruby"
    else
        set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
    end if
    do shell script ruby & " <<'EOF' - " & infile's quoted form & " " & outfile's quoted form & "
    require 'osx/cocoa'
    include OSX
    raise ArgumentError, %[Usage: #{File.basename($0)} <input plist file> <output rtf file>] unless ARGV.length == 2
    infile, outfile = ARGV
    plist = NSDictionary.dictionaryWithContentsOfFile(infile)
    mas = NSMutableAttributedString.alloc.init
    rs = NSAttributedString.alloc.initWithString(%[\\n\\n])
    opts = { NSDocumentTypeDocumentOption => NSRTFTextDocumentType }
    plist.allKeys.sort.each do |k|
        ak = NSAttributedString.alloc.initWithString(%[#{k} = ])
        mas.appendAttributedString(ak)
        data = plist.objectForKey(k)
        av = NSAttributedString.alloc.objc_send(
            :initWithData, data,
            :options, opts,
            :documentAttributes, nil,
            :error, nil)
        mas.appendAttributedString(av)
        mas.appendAttributedString(rs)
    end
    mas.fixAttributesInRange(NSMakeRange(0, mas.length))
    data = mas.objc_send(
        :RTFFromRange, NSMakeRange(0, mas.length),
        :documentAttributes, nil)
    data.objc_send(
        :writeToFile, outfile,
        :atomically, false)
    EOF
    --end of applescript 2
    Hope this may help,
    H

  • Safari widgets in iweb?

    I create a safari widget and it shows in dashboard...great... but how can i use this widget in iWeb?
    hope someone can enlighten me?
    thanks

    enigmaimages wrote:
    I create a safari widget and it shows in dashboard...great... but how can i use this widget in iWeb?
    They are called web clips, web clips data are store in one plist file so to use one of them you have to extract from plist file: http://discussions.apple.com/message.jspa?messageID=6720654
    Short answer to your question: not easy.

  • Help with pico /etc/profile

    I have redhat 7.3 and i install the sdk. Its in usr/java/j2sdk1.4.1/bin
    Where exactly do I put the line path so every user can use the java/javac etc commands anywhere. I tried. but it dont work. Im I clicked on save settings, but im not sure that saves it. I was trying to follow the other thread instructions but everyone seems kinda different. Im very new to linux by the way. Think i installed it by accident :P
    # /etc/profile
    # System wide environment and startup programs, for login setup
    # Functions and aliases go in /etc/bashrc
    pathmunge () {
    if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
    if [ "$2" = "after" ] ; then
    PATH="$PATH:/usr/java/j2sdk1.4.0/bin"
    else
    PATH=$1:$PATH
    fi
    fi
    # Path manipulation
    if [ `id -u` = 0 ]; then
    pathmunge /sbin
    pathmunge /usr/sbin

    It seems to me that when ".plist" files contain references to other files or folders, most require full paths and they won't accept anything to represent a generic "home". Either that, or items are represented by "alias" data, referring to a specific file, which would be completely independent of paths. That of course means that any sort of "template" account must avoid containing references to items within the "home" folder because the template will contain references to the original items, not their counterparts in the new user's home. Note that things like the "sidebar" in a regular account or the "Dock" in a "Simple Finder" do contain shortcuts to items within the "home" folder, but these aren't generated from ".plist" files in the template but rather are generated on the fly by "Finder" during login.
    In the case of the default download location for "Safari", I think it defaults to the user's "Desktop" in the absence of a ".plist" file. However, if the user changes the location, then a ".plist" file is created at that point. It would also appear that the default download location is set to the user's "Desktop" if the default Safari "home page" is changed, which also causes the same file to be created. The file appears to be: "~/Library/Preferences/com.apple.internetconfigpriv.plist"
    I haven't tested this to see if it would work, but it might be possible to modify your existing template to remove the reference to the "download folder" while retaining the desired Safari "home page" using something along these lines:<pre style="overflow:auto; padding: 5px; width: 500px ; font-size: 10px; border:1">sudo defaults delete /System/Library/User\ Template/English.lproj/Library/Preferences/com.apple.internetconfigpriv DownloadFolder</pre>

  • IPad 2 invisible to iTunes

    After a few full resets (as recommended in the recovery manual), I got my iPad to recognise the power source again and it's now at 100% power.
    I reconnected it to my Macbook Pro and it's still not visible to iTunes or iPhoto. I've tried different USB cables and it's the same. I've tried different USB plugs and it's the same - well, not exactly, on the one plug it says 'not charging' on the other nothing.
    It was working completely reliably up until Saturday.
    What could it be? I don't want to have to keep doing full resets all the time.
    Do I have to take it back to the shop??

    Here's the system log from my iPad:
    31 Oct 2011 07:41:04 - kernel [0] (Debug): launchd[88] Builtin profile: container (sandbox) 31 Oct 2011 07:41:04 - kernel [0] (Debug): launchd[88] Container: /private/var/mobile/Applications/2F516922-CCF1-4B98-81F5-BA743FCC981A [69] (sandbox) 31 Oct 2011 07:40:55 - kernel [0] (Debug): set_crc_notification_state 0 31 Oct 2011 07:40:54 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=1 31 Oct 2011 07:40:54 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 255->0 (deferring until bootloaded) 31 Oct 2011 07:40:54 - SpringBoard [15] (Notice): MultitouchHID: device bootloaded 31 Oct 2011 07:40:54 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 0->0 31 Oct 2011 07:40:53 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=0 31 Oct 2011 07:40:53 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 0->255 31 Oct 2011 07:40:40 - wifid [25] (Error): WiFi:[341732440.938301]: Disable WoW requested by "dataaccessd" 31 Oct 2011 07:40:35 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=1 31 Oct 2011 07:40:35 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 255->0 (deferring until bootloaded) 31 Oct 2011 07:40:35 - kernel [0] (Debug): set_crc_notification_state 0 31 Oct 2011 07:40:35 - SpringBoard [15] (Notice): MultitouchHID: device bootloaded 31 Oct 2011 07:40:35 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 0->0 31 Oct 2011 07:40:33 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=0 31 Oct 2011 07:40:33 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 0->255 31 Oct 2011 07:40:32 - profiled [20] (Notice): (Note ) profiled: Idled. 31 Oct 2011 07:40:32 - profiled [20] (Notice): (Note ) profiled: Service stopping. 31 Oct 2011 07:40:26 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:25 - kernel [0] (Debug): set_crc_notification_state 0 31 Oct 2011 07:40:25 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:24 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:24 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=1 31 Oct 2011 07:40:24 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 255->0 (deferring until bootloaded) 31 Oct 2011 07:40:24 - SpringBoard [15] (Notice): MultitouchHID: device bootloaded 31 Oct 2011 07:40:24 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 0->0 31 Oct 2011 07:40:23 - CommCenter [17] (Notice): No more assertions for PDP context 0.  Returning it back to normal. 31 Oct 2011 07:40:23 - CommCenter [17] (Notice): Scheduling PDP tear down timer for (341732723.017949) (current time == 341732423.017957) 31 Oct 2011 07:40:23 - kernel [0] (Debug): AppleD1946PMUPowerSource: AppleUSBCableDetect 1 31 Oct 2011 07:40:23 - kernel [0] (Debug): AppleD1946PMUPowerSource: AppleUSBCableType USBHost 31 Oct 2011 07:40:23 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:23 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:22 - kernel [0] (Debug): AppleD1946PMUPowerSource: AppleUSBCableDetect 0 31 Oct 2011 07:40:22 - kernel [0] (Debug): AppleD1946PMUPowerSource: AppleUSBCableType Detached 31 Oct 2011 07:40:22 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBCableDisconnect 31 Oct 2011 07:40:19 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:19 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:18 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:17 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:17 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:40:16 - kernel [0] (Debug): AppleD1946PMUPowerSource: AppleUSBCableDetect 1 31 Oct 2011 07:40:16 - kernel [0] (Debug): AppleD1946PMUPowerSource: AppleUSBCableType USBHost 31 Oct 2011 07:40:15 - kernel [0] (Debug): AppleD1946PMUPowerSource: AppleUSBCableDetect 0 31 Oct 2011 07:40:15 - kernel [0] (Debug): AppleD1946PMUPowerSource: AppleUSBCableType Detached 31 Oct 2011 07:40:15 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBCableDisconnect 31 Oct 2011 07:40:01 - timed [84] (Notice): (Note ) CoreTime: Not setting system time to 10/31/2011 05:40:02 from GPS because time is unchanged 31 Oct 2011 07:39:51 - com.apple.locationd [44] (Notice): NOTICE,Potentially setting system time zone to Africa/Johannesburg 31 Oct 2011 07:39:51 - timed [84] (Notice): (Note ) CoreTime: Received timezone "Africa/Johannesburg" from "Location" 31 Oct 2011 07:39:51 - timed [84] (Notice): (Note ) CoreTime: Not setting time zone to Africa/Johannesburg from Location 31 Oct 2011 07:39:49 - UserEventAgent [12] (Warning): Unable to cancel system wake for 2011-10-31 07:39:34 +0200. IOPMCancelScheduledPowerEvent() returned 0xe00002c2 31 Oct 2011 07:39:48 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=0 31 Oct 2011 07:39:48 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 0->255 31 Oct 2011 07:39:45 - timed [84] (Notice): (Note ) CoreTime: Want active time in 40.23hrs. Need active time in 123.56hrs. 31 Oct 2011 07:39:44 - kernel [0] (Debug): AppleSerialMultiplexer: nif::ioctl: MTU set to 1450 31 Oct 2011 07:39:44 - configd [14] (Notice): network configuration changed. 31 Oct 2011 07:39:42 - com.apple.locationd [44] (Notice): NOTICE,Potentially setting system time zone to Africa/Johannesburg 31 Oct 2011 07:39:42 - timed [84] (Notice): (Note ) CoreTime: Received timezone "Africa/Johannesburg" from "Location" 31 Oct 2011 07:39:42 - timed [84] (Notice): (Note ) CoreTime: Not setting time zone to Africa/Johannesburg from Location 31 Oct 2011 07:39:41 - kernel [0] (Debug): set_crc_notification_state 0 31 Oct 2011 07:39:41 - CommCenter [17] (Notice): No more assertions for PDP context 0.  Returning it back to normal. 31 Oct 2011 07:39:41 - CommCenter [17] (Notice): Scheduling PDP tear down timer for (341732681.312836) (current time == 341732381.312844) 31 Oct 2011 07:39:41 - mstreamd [40] (Notice): (Note ) mstreamd: No jobs scheduled. 31 Oct 2011 07:39:41 - mstreamd [40] (Notice): (Note ) mstreamd: Media stream daemon stopping. 31 Oct 2011 07:39:41 - mstreamd [40] (Notice): (Note ) mstreamd: mstreamd shutting down. 31 Oct 2011 07:39:40 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=1 31 Oct 2011 07:39:40 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 255->0 (deferring until bootloaded) 31 Oct 2011 07:39:40 - SpringBoard [15] (Notice): MultitouchHID: device bootloaded 31 Oct 2011 07:39:40 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 0->0 31 Oct 2011 07:39:40 - dataaccessd [51] (Notice): 13b790|CalDAV|Error|There were some failures changing properties, according to the following response: [[[<CoreDAVResponseItem: 0xced0120>]: DAV:response | Number of HREFs: [1]| Status: [(null)]| Number of prop stats: [1]| Error: [(null)]| Response description: [(null)]| Location: [(null)]]]. 31 Oct 2011 07:39:40 - CommCenter [17] (Notice): No more assertions for PDP context 0.  Returning it back to normal. 31 Oct 2011 07:39:40 - CommCenter [17] (Notice): Scheduling PDP tear down timer for (341732680.680762) (current time == 341732380.680852) 31 Oct 2011 07:39:40 - wifid [25] (Error): WiFi:[341732380.704894]: Client dataaccessd set type to background application 31 Oct 2011 07:39:39 - wifid [25] (Error): WiFi:[341732379.548208]: Client dataaccessd set type to background application 31 Oct 2011 07:39:39 - wifid [25] (Error): WiFi:[341732379.549238]: Enable WoW requested by "dataaccessd" 31 Oct 2011 07:39:39 - SpringBoard [15] (Warning): Error: Connection interrupted 31 Oct 2011 07:39:37 - dataaccessd [51] (Notice): 13b790|CalDAV|Error|Could not find the current user principal. Found properties: [{
       "DAV::displayname" = "[<CoreDAVLeafItem: 0xce71aa0>]: DAV:displayname";
       "DAV::principal-URL" = "[[<CoreDAVItemWithHrefChildItem: 0xce71b40>]: DAV:principal-URL]\n  HREF: [[[<CoreDAVHrefItem: 0xce71cb0>]: DAV:href]\n  Payload as original URL: [/calendar/dav/[email protected]/user/]\n  Payload as full URL: [https://peter.h.m.brooks%[email protected]/calendar/dav/peter.h.m.brooks%40gmail.com/user/]\n  Base URL: [https://peter.h.m.brooks%[email protected]:443/calendar/dav/peter.h.m.brooks%40gmail.com/user/]]";
       "urn:ietf:params:xml:ns:caldav:calendar-home-set" = "[[<CoreDAVItemWithHrefChildren: 0xce71170>]: urn:ietf:params:xml:ns:caldavcalendar-home-set]\n  Number of HREFs: [1]\n  Unauthenticated: [(null)]";
       "urn:ietf:params:xml:ns:caldav:calendar-user-address-set" = "[[<CoreDAVItemWithHrefChildren: 0xce715e0>]: urn:ietf:params:xml:ns:caldavcalendar-user-address-set]\n  Number of HREFs: [2]\n  Unauthenticated: [(null)]";
       "urn:ietf:params:xml:ns:caldav:schedule-inbox-URL" = "[[<CoreDAVItemWithHrefChildItem: 0xce70a10>]: urn:ietf:params:xml:ns:caldavschedule-inbox-URL]\n  HREF: [[[<CoreDAVHrefItem: 0xce711d0>]: DAV:href]\n  Payload as original URL: [/calendar/dav/peter.h.m.brooks%40gmail.com/inbox/]\n  Payload as full URL: [https://peter.h.m.brooks%[email protected]:443/calendar/dav/peter.h.m.brooks%40gmail.com/inbox/]\n  Base URL: [https://peter.h.m.brooks%[email protected]:443/calendar/dav/peter.h.m.brooks%40gmail.com/user/]]";
       "urn:ietf:params:xml:ns:caldav:schedule-outbox-URL" = "[[<CoreDAVItemWithHrefChildItem: 0xce6fb30>]: urn:ietf:params:xml:ns:caldavschedule-outbox-URL]\n  HREF: [[[<CoreDAVHrefItem: 0xce71b60>]: DAV:href]\n  Payload as original URL: [/calendar/dav/peter.h.m.brooks%40gmail.com/outbox/]\n  Payload as full URL: [https://peter.h.m.brooks%[email protected]:443/calendar/dav/peter.h.m.brooks%40gmail.com/outbox/]\n  Base URL: [https://peter.h.m.brooks%[email protected]:443/calendar/dav/peter.h.m.brooks%40gmail.com/user/]]";
    }] 31 Oct 2011 07:39:37 - wifid [25] (Error): WiFi:[341732377.807391]: Client apsd set type to background application 31 Oct 2011 07:39:37 - wifid [25] (Error): WiFi:[341732377.808034]: Enable WoW requested by "apsd" 31 Oct 2011 07:39:35 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=0 31 Oct 2011 07:39:35 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 0->255 31 Oct 2011 07:39:33 - dataaccessd [51] (Notice): 13b790|DA|Warn |Could not find a password in the keychain for 45CA8303-48B7-4538-ACCD-07D1FBC7AE8A, error -25300 31 Oct 2011 07:39:33 - dataaccessd [51] (Notice): 13b790|DA|Warn |Could not find a password in the keychain for 0EC0BAA7-C6E5-4C8D-B40F-D27862D239B0, error -25300 31 Oct 2011 07:39:33 - wifid [25] (Error): WiFi:[341732373.979248]: Client dataaccessd set type to background application 31 Oct 2011 07:39:32 - daily [52] (Notice): (0x3e176ce8) carrousel: Could not rmdir /private/var/mobile/Applications/392476FD-3C05-4406-B172-ADA20ABFC32E/tmp/cache /icons: Directory not empty 31 Oct 2011 07:39:32 - daily [52] (Notice): (0x3e176ce8) carrousel: Could not rmdir /private/var/mobile/Applications/392476FD-3C05-4406-B172-ADA20ABFC32E/tmp/cache : Directory not empty 31 Oct 2011 07:39:31 - kernel [0] (Debug): launchd[82] Builtin profile: MobileMail (sandbox) 31 Oct 2011 07:39:31 - mstreamd [40] (Notice): (Note ) mstreamd: Listening to production-environment push notifications. 31 Oct 2011 07:39:31 - mstreamd [40] (Notice): (Note ) mstreamd: Listening to production-environment push notifications. 31 Oct 2011 07:39:31 - mstreamd [40] (Notice): (Note ) mstreamd: Retrieved push tokens. Dev: 0, Prod: 1 31 Oct 2011 07:39:31 - mstreamd [40] (Notice): (Note ) mstreamd: Media stream daemon starting... 31 Oct 2011 07:39:31 - UserEventAgent [12] (Warning): Unable to cancel system wake for 2011-10-31 07:39:16 +0200. IOPMCancelScheduledPowerEvent() returned 0xe00002c2 31 Oct 2011 07:39:31 - wifid [25] (Error): WiFi:[341732371.773413]: Client softwareupdatese is background application 31 Oct 2011 07:39:30 - softwareupdated [34] (Notice): 3e176ce8 : Cleaning up unused prepared updates 31 Oct 2011 07:39:30 - ReportCrash [81] (Notice): Formulating crash report for process MobileMail[78] 31 Oct 2011 07:39:30 - com.apple.launchd [1] (Warning): (UIKitApplication:com.apple.mobilemail[0xd568]) Job appears to have crashed: Abort trap: 6 31 Oct 2011 07:39:30 - SpringBoard [15] (Warning): Application 'Mail' exited abnormally with signal 6: Abort trap: 6 31 Oct 2011 07:39:30 - ReportCrash [81] (Error): Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MobileMail_2011-10-31-073929_Peter-Brook ss-iPad.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0 31 Oct 2011 07:39:29 - MobileMail [78] (Error): *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
    *** First throw call stack:
    (0x36e038bf 0x35be21e5 0x36d5820f 0xc20a7 0xc1e09 0xc1c1d 0x31212d3f 0x31214261 0x31214391 0x3121510f 0x312053e1 0x36dd7553 0x36dd74f5 0x36dd6343 0x36d594dd 0x36d593a5 0x316b7b85 0x316d1533 0x317575a1 0x3093fc1d 0x3093fad8) 31 Oct 2011 07:39:29 - UIKitApplication:com.apple.mobilemail[0xd568] [78] (Notice): terminate called throwing an exception 31 Oct 2011 07:39:28 - SpringBoard [15] (Warning): SMS Plugin initialized. 31 Oct 2011 07:39:28 - SpringBoard [15] (Warning): Telephony plugin initialized 31 Oct 2011 07:39:28 - SpringBoard [15] (Warning): SIMToolkit plugin for SpringBoard initialized. 31 Oct 2011 07:39:28 - SpringBoard [15] (Error): WiFi: Consulting "no-sdio-devices" property. 31 Oct 2011 07:39:28 - SpringBoard [15] (Error): WiFi: "no-sdio-devices" property not found. 31 Oct 2011 07:39:28 - kernel [0] (Debug): launchd[78] Builtin profile: MobileMail (sandbox) 31 Oct 2011 07:39:28 - SpringBoard [15] (Warning): WiFi picker plugin initialized 31 Oct 2011 07:39:28 - SpringBoard [15] (Warning): EKAlarmEngine: Region monitoring not available or enabled. Trigger ignored! 31 Oct 2011 07:39:27 - aggregated [58] (Warning): PLAggregateState Error: Leaving state screen_off even though we are not in it, doing nothing 31 Oct 2011 07:39:27 - aggregated [58] (Warning): PLAggregateState Error: Entering state screen_on even though we are already in it, doing nothing 31 Oct 2011 07:39:27 - wifid [25] (Error): WiFi:[341732367.237832]: Disable WoW requested by "spd" 31 Oct 2011 07:39:27 - kernel [0] (Debug): AppleSerialMultiplexer: mux-ad(eng)::setLinkQualityMetricGated: Setting link quality metric to 100 31 Oct 2011 07:39:27 - SpringBoard [15] (Warning): BTM: posting notification BluetoothAvailabilityChangedNotification 31 Oct 2011 07:39:27 - SpringBoard [15] (Warning): BTM: BTLocalDeviceGetPairedDevices returned 0 devices 31 Oct 2011 07:39:27 - SpringBoard [15] (Error): WiFi: Consulting "no-sdio-devices" property. 31 Oct 2011 07:39:27 - SpringBoard [15] (Error): WiFi: "no-sdio-devices" property not found. 31 Oct 2011 07:39:26 - UserEventAgent [12] (Warning): Unable to cancel system wake for 2011-10-31 07:39:15 +0200. IOPMCancelScheduledPowerEvent() returned 0xe00002c2 31 Oct 2011 07:39:26 - UserEventAgent [12] (Warning): Unable to cancel system wake for 2011-10-31 07:39:16 +0200. IOPMCancelScheduledPowerEvent() returned 0xe00002c2 31 Oct 2011 07:39:26 - UserEventAgent [12] (Warning): Unable to cancel system wake for 2011-10-31 07:39:16 +0200. IOPMCancelScheduledPowerEvent() returned 0xe00002c2 31 Oct 2011 07:39:26 - UserEventAgent [12] (Warning): Unable to cancel system wake for 2011-10-31 07:39:16 +0200. IOPMCancelScheduledPowerEvent() returned 0xe00002c2 31 Oct 2011 07:39:25 - com.apple.CommCenter [17] (Notice): error 8 creating properties table: attempt to write a readonly database 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): MemMgr initialized: Dynamic pool heap size: 471280 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): MemMgr initialized: StaticMalloc heap available: 450164 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): BT_HCI_TRANSPORT not set - Attempting to read from plist. 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): DeviceTree transport = 0x00000003 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): HCI Transport is set to H4BC 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): DeviceTree speed = 3000000 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): Connected to com.apple.uart.bluetooth at 3000000 baud 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): Stack initialization complete 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): Codec 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Media Type: Audio    Codec Type: SBC    Sample Rates: 44100 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Channels: Stereo 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Blocks: 16 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Subbands: 8 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Allocation: Loudness 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Bitpool Range: 2-53 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): Codec 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Media Type: Audio    Codec Type: SBC    Sample Rates: 44100 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Channels: Stereo 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Blocks: 16 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Subbands: 8 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Allocation: Loudness 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Bitpool Range: 2-53 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice): Codec 31 Oct 2011 07:39:25 - com.apple.BTServer [63] (Notice):    Media Type: Audio    Codec Type: MPEG AAC    Data: 80 01 04 02 00 00 31 Oct 2011 07:39:25 - com.apple.locationd [44] (Notice): CELL_LOC: unknown registration technology, kCTRegistrationRadioAccessTechnologyUnknown 31 Oct 2011 07:39:25 - com.apple.locationd [44] (Notice): bad RAT for GSM: Cell, RAT, 8, Unknown, valid , 1, cellType , Unknown, Unknow / Invalid Cell 31 Oct 2011 07:39:25 - configd [14] (Notice): network configuration changed. 31 Oct 2011 07:39:25 - UserEventAgent [12] (Warning): Unable to cancel system wake for 2011-10-31 07:39:14 +0200. IOPMCancelScheduledPowerEvent() returned 0xe00002c2 31 Oct 2011 07:39:25 - SpringBoard [15] (Warning): BTM: attaching to BTServer 31 Oct 2011 07:39:24 - configd [14] (Notice): Captive: en0: Not probing 'Loki' (protected network) 31 Oct 2011 07:39:24 - configd [14] (Notice): network configuration changed. 31 Oct 2011 07:39:24 - kernel [0] (Debug): [69.521009416]: AppleBCMWLANNetManager::receivedIPv4Address(): Received address 10.0.1.193, entering powersave mode 2 31 Oct 2011 07:39:24 - kernel [0] (Debug): AppleBCMWLANCore:startRoamScan(): 2840 starting RoamScan; MultiAPEnv:0 isdualBand:1 isOn5G:1 31 Oct 2011 07:39:24 - configd [14] (Notice): network configuration changed. 31 Oct 2011 07:39:23 - SpringBoard [15] (Notice): IOMobileFrameBufferGetMirroringCapability returning -536870201 via kIOMFBConnectMethod_GetMirroringCapability 31 Oct 2011 07:39:22 - profiled [20] (Notice): (Note ) profiled: Checking for new carrier profile... 31 Oct 2011 07:39:22 - profiled [20] (Notice): (Error) MC: Failed to parse profile data. Error: NSError:
    Desc  : Invalid Profile
    US Desc: Invalid Profile
    Domain : MCProfileErrorDomain
    Code  : 1000
    Type  : MCFatalError 31 Oct 2011 07:39:22 - profiled [20] (Notice): (Note ) profiled: No configuration profile found in carrier bundle. 31 Oct 2011 07:39:22 - kernel [0] (Debug): AppleH4CamIn::ISP_LoadFullResLensShadingTable_gated (camChan=0) 31 Oct 2011 07:39:22 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:39:22 - kernel [0] (Debug): AppleH4CamIn::ISP_LoadSetfile_gated (camChan=1) 31 Oct 2011 07:39:22 - kernel [0] (Debug): AppleH4CamIn::setPowerStateGated: 1 31 Oct 2011 07:39:22 - kernel [0] (Debug): AppleH4CamIn::power_on_hardware 31 Oct 2011 07:39:22 - CommCenter [17] (Notice): Started Proximity Service 31 Oct 2011 07:39:22 - kernel [0] (Debug): AppleH4CamIn::setPowerStateGated: 0 31 Oct 2011 07:39:22 - kernel [0] (Debug): AppleH4CamIn::power_off_hardware 31 Oct 2011 07:39:22 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:39:21 - wifid [25] (Error): WiFi:[341732361.120492]: Processing link event UP 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleH4CamIn::ISP_Init - No set-file loaded for camera channel 0 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleH4CamIn::ISP_Init - No set-file loaded for camera channel 1 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleH4CamIn::ISP_InitialSensorDetection - found sensor on chan 0: 0x9726 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleH4CamIn::ISP_InitialSensorDetection - found sensor on chan 1: 0x7739 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleH4CamIn::power_off_hardware 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleH4CamIn::ISP_LoadSetfile_gated (camChan=0) 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleBCMWLANCore::setASSOCIATE() [wifid]:  lowerAuth = AUTHTYPE_OPEN, upperAuth = AUTHTYPE_WPA2_PSK, key = CIPHER_PMK , don't disassociate    . 31 Oct 2011 07:39:21 - kernel [0] (Debug): [66.563631125]: AppleBCMWLANNetManager::prepareToBringUpLink(): Delaying powersave entry in order to get an IP address 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleBCMWLAN Joined BSS:    @ 0xc0ff1800, BSSID = 00:24:36:a9:25:d8, rssi = -42, rate = 54 (100%), channel = 44, encryption = 0xc, ap = 1, failures =  0, age = 0, ssid[ 4] = "Loki" 31 Oct 2011 07:39:21 - kernel [0] (Debug): AirPort: Link Up on en0 31 Oct 2011 07:39:21 - kernel [0] (Debug): en0: BSSID changed to 00:24:36:a9:25:d8 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleSynopsysOTGDevice::handleUSBReset 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleBCMWLANJoinManager::handleSupplicantEvent(): status = 6, reason = 0, flags = 0x0, authtype = 0, addr = 00:00:48:01:2c:00 31 Oct 2011 07:39:21 - kernel [0] (Debug): AppleBCMWLANCore:startRoamScan(): 2826 Delaying RoamScan; because  Join Mgr Busy 0 isWaitingforIP 1 31 Oct 2011 07:39:21 - wifid [25] (Error): WiFi:[341732361.160873]: Event APPLE80211_M_ASSOC_DONE is not expected while command Scan is pending 31 Oct 2011 07:39:21 - backupd [54] (Warning): INFO: Account changed (enabled=1, accountID=85964511) 31 Oct 2011 07:39:21 - com.apple.CommCenter [17] (Notice): _connectAndCheckVersion: attempt to write a readonly database 31 Oct 2011 07:39:21 - CommCenter [17] (Notice): STOP LOCATION UPDATE 31 Oct 2011 07:39:21 - CommCenter [17] (Notice): STOP LOCATION UPDATE 31 Oct 2011 07:39:21 - com.apple.locationd [44] (Notice): NOTICE,Location icon should now be visible 31 Oct 2011 07:39:21 - MRMLowDiskUEA [12] (Notice): MobileDelete: LowDisk Plugin: start 31 Oct 2011 07:39:21 - MRMLowDiskUEA [12] (Notice): kqueue registration successful 31 Oct 2011 07:39:21 - com.apple.mediaserverd [41] (Notice): H4ISPDevice: sending full-res lens shading table to kernel, size = 2087924 31 Oct 2011 07:39:21 - UserEventAgent [12] (Notice): (Note ) PIH: SIM is now ready. 31 Oct 2011 07:39:20 - com.apple.misd [60] (Notice): allowing special port forwarding for test fixtures 31 Oct 2011 07:39:20 - softwareupdated [34] (Notice): 3e176ce8 : Cleaning up unused prepared updates 31 Oct 2011 07:39:20 - kernel [0] (Debug): BTServer[63] Builtin profile: BlueTool (sandbox) 31 Oct 2011 07:39:20 - kernel [0] (Debug): AppleH4CamIn::ISP_LoadFirmware_gated: fw len=1171480 31 Oct 2011 07:39:20 - kernel [0] (Debug): AppleH4CamIn::ISP_LoadFirmware_gated - firmware checksum: 0x0545E78A 31 Oct 2011 07:39:20 - kernel [0] (Debug): AppleH4CamIn::power_on_hardware 31 Oct 2011 07:39:20 - kernel [0] (Debug): AppleSynopsysOTGDevice::gated_registerFunction Register function PTP 31 Oct 2011 07:39:20 - timed [28] (Notice): (Note ) CoreTime: Want active time in 40.24hrs. Need active time in 123.57hrs. 31 Oct 2011 07:39:20 - kernel [0] (Debug): AppleSynopsysOTGDevice::gated_registerFunction all functions registered- we are ready to start usb stack 31 Oct 2011 07:39:20 - mstreamd [40] (Notice): (Note ) mstreamd: mstreamd starting up. 31 Oct 2011 07:39:20 - wifid [25] (Error): WiFi:[341732360.410103]: Client itunesstored is background application 31 Oct 2011 07:39:20 - com.apple.mediaserverd [41] (Notice): 32 bytes retrieved. 31 Oct 2011 07:39:20 - com.apple.locationd [44] (Notice): NOTICE,Location icon should now not be visible 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice          Interface: USBAudioControl 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice          Interface: USBAudioStreaming 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice          Interface: IapOverUsbHid 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice - Configuration: PTP + Apple Mobile Device 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice          Interface: PTP 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice          Interface: AppleUSBMux 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice - Configuration: PTP + Apple Mobile Device + Apple USB Ethernet 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice          Interface: PTP 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice          Interface: AppleUSBMux 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice          Interface: AppleUSBEthernet 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice::gated_registerFunction Register function USBAudioControl 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice::gated_registerFunction Register function USBAudioStreaming 31 Oct 2011 07:39:19 - kernel [0] (Debug): IOAccessoryPortUSB::start 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice::gated_registerFunction Register function IapOverUsbHid 31 Oct 2011 07:39:19 - kernel [0] (Debug): virtual bool AppleUSBDeviceMux::start(IOService*) build: Sep 15 2011 23:52:35 31 Oct 2011 07:39:19 - kernel [0] (Debug): init_waste 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice::gated_registerFunction Register function AppleUSBMux 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleSynopsysOTGDevice::gated_registerFunction Register function AppleUSBEthernet 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleUSBEthernetDevice::start: Host MAC address = 36:51:c9:4d:da:c7 31 Oct 2011 07:39:19 - kernel [0] (Debug): AppleUSBEthernetDevice: Ethernet address 36:51:c9:4d:da:c8 31 Oct 2011 07:39:19 - com.apple.BTServer [63] (Notice): DeviceTree speed = 3000000 31 Oct 2011 07:39:19 - com.apple.networkd [72] (Notice): main:212 networkd.72 built Sep 16 2011 00:02:59 31 Oct 2011 07:39:19 - SpringBoard [15] (Notice): Posting 'com.apple.iokit.hid.displayStatus' notifyState=1 31 Oct 2011 07:39:19 - SpringBoard [15] (Notice): __IOHIDLoadBundles: Loaded 1 HID plugin 31 Oct 2011 07:39:19 - com.apple.BTServer [63] (Notice): Overriding BDADDR from environment variable: BT_DEVICE_ADDRESS = 34:51:c9:4d:da:c6 31 Oct 2011 07:39:19 - com.apple.BTServer [63] (Notice): Using host name: Peter-Brookss-iPad 31 Oct 2011 07:39:19 - SpringBoard [15] (Notice): CLTM: initial thermal level is 0 31 Oct 2011 07:39:19 - CommCenter [17] (Notice): START LOCATION UPDATE 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 lookup_baseband_info_old: The SIM status has changed 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 lookup_baseband_info_old: Inserting an IMSI into the data ark. Triggering an activation check. 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 load_activation_records: Could not extract ICCID from record 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 load_activation_records: This is a wildcard record 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 dealwith_activation: No unlock record. Looking for a care flag. 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 dealwith_activation: No care flag. Looking for a record that matches the SIM. 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 dealwith_activation: Looking up the record for ICCID 89017000000002367892 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 dealwith_activation: No record for the SIM. Looking for wildcard. 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 determine_activation_state_old: This device is a phone. It supports factory activation. 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 determine_activation_state_old: The original activation state is WildcardActivated 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 determine_activation_state_old: SIM status: kCTSIMSupportSIMStatusReady 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 determine_activation_state_old: Removing previously issued activation ticket from data ark 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 determine_activation_state_old: No ICCID in the activation record 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 determine_activation_state_old: The record contains a wildcard ticket 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 deliver_baseband_ticket: SIM is not in operator locked state. Ignoring activation ticket 31 Oct 2011 07:39:19 - lockdownd [21] (Error): 3e176ce8 determine_activation_state_old: The activation state has not changed. 31 Oct 2011 07:39:19 - SpringBoard [15] (Notice): MultitouchHID: detection mode: 255->0 (deferring until bootloaded) 31 Oct 2011 07:39:19 - CLTM [12] (Error): CLTM: resetting temps: now = 1320039559, last update = -2147483648 31 Oct 2011 07:39:19 - com.apple.BTServer [63] (Notice): Device not open yet, use 'device' to open it. 31 Oct 2011 07:39:19 - mediaserverd [41] (Error): 07:39:19.880493 com.apple.AVConference: /SourceCache/GameKitServices/GameKitServices-344.3/AVConference.subproj/Sources /AVConferenceServer.m:1867: AVConferenceServerStart 

  • Provisioning Problems with Beta 7

    I read the other thread on this and tried those things.
    I'm still having problems deploying with Beta 7.
    I followed the instructions on the dev site (the pdf).
    I generated a new generic wildcard AppID called ##########.com.mycompany.*
    Then I generated 3 new provisioning profiles for my three apps .
    All three provisioning profiles now have the same wildcard
    app id (which makes me uncomfortable but thats what the doc says to do)
    In my project/getinfo/build I have "iPhone Developer" in the Code
    signing entity under "Any iPhone OS Device".
    In the code Signing Provisioning Profile I chose the profile I made
    for my first application.
    In target/myapplication/getinfo under properties under identifier I have
    ##########.com.mycompany.*
    In info.plist under Bundle Identifier I have ##########.com.mycompany.*
    Build and go gives me the unexpected error error from Organizer.
    (0xE800..01)
    So I'm obviously doing something wrong. I see the provisioning profile
    (I'm only trying the first one at the moment) in the organizer and it is checked.
    One thing that confuses my is that on the portal all three of my profiles
    now have the same ########### prefix. This doesn't seem correct as how
    am I going to differentiate between them in the future (for uploading, etc)?
    Help! Thanks!

    OK, I got it fixed. The instructions said to use an appid of ######.* and I was using #####.com.mycompany.* which, of course, isn't the same.
    I also needed to remove the bundle id from plist and the target and just put in any string I wanted. I'll worry about that all appids are the same later...

  • Dynamic heightForRowAtIndexPath - not so dynamic now :(

    Developers,
    I have a tableview that increases its cell height based on the length of a UILabel drawn within the cell. The UILabel is populated from strings in a Plist.
    In the same view i also have 'viewsForHeaderInSection' and 'tableViewHeaders', both of these are cutomised UILabels and are also populated from a plist
    The code is adapted from the code found here.
    The problem i have is that the 'heightForRowAtIndexPath' is not responding to increase in UILabel Length, so the strings are being presented in the UILabel's, but the cells are not expanding to encompass them.
    I am left with the visual mess that I have been playing around with this for 4 hours and now i need some fresh, experienced eyes to look at this.
    I have posted my code below in the hope that somebody can see why it is not working
    as always, any comments/suggestions/solutions are welcome.
    with thanks,
    j
    #import "ClinicalConditionsDetailViewController.h"
    #import "Constants.h"
    #define FONT_SIZE 11.0f
    #define CELLCONTENTWIDTH 309.0f
    #define CELLCONTENTMARGIN 10.0f
    @implementation ClinicalConditionsDetailViewController
    @synthesize ItemChild, clinicalConditions;
    - (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor clearColor];
    UILabel *tableHeader = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 0, 60)];
    tableHeader.backgroundColor = [UIColor clearColor];
    tableHeader.font = [UIFont boldSystemFontOfSize:20];
    tableHeader.textAlignment = UITextAlignmentCenter;
    tableHeader.textColor = [UIColor whiteColor];
    NSDictionary *state = [clinicalConditions objectAtIndex:0/(NSInteger)nil]>;
    NSString *text = [state objectForKey:@"title"];
    tableHeader.text = text;
    self.tableView.tableHeaderView = tableHeader;
    [tableHeader release];
    ///////////////////////////////////dynamic cell size tableview code//////////////////////////////////////
    // Customize the number of sections in the table view.
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return [clinicalConditions count];
    // Customize the number of rows in the table view.
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 1;
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
    NSString *text = [ItemChild objectAtIndex:[indexPath section]];
    CGSize constraint = CGSizeMake(CELLCONTENTWIDTH - (CELLCONTENTMARGIN * 2), 20000.0f);
    CGSize size = [text sizeWithFont:[UIFont systemFontOfSize:FONT_SIZE] constrainedToSize:constraint lineBreakMode:UILineBreakModeWordWrap];
    CGFloat height = MAX(size.height, 44.0f);
    return height + (CELLCONTENTMARGIN * 2);
    - (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath
    UITableViewCell *cell;
    UILabel *label = nil;
    cell = [tv dequeueReusableCellWithIdentifier:@"Cell"];
    if (cell == nil)
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"Cell"] autorelease];
    label = [[UILabel alloc] initWithFrame:CGRectZero];
    [label setLineBreakMode:UILineBreakModeWordWrap];
    [label setMinimumFontSize:FONT_SIZE];
    [label setNumberOfLines:0];
    [label setFont:[UIFont systemFontOfSize:FONT_SIZE]];
    [label setTag:1];
    /*[[label layer] setBorderWidth:2.0f];*/
    [[cell contentView] addSubview:label];
    NSString *text = [[clinicalConditions objectAtIndex:[indexPath section]]objectForKey:NAME_KEY];
    CGSize constraint = CGSizeMake(CELLCONTENTWIDTH - (CELLCONTENTMARGIN * 2), 20000.0f);
    CGSize size = [text sizeWithFont:[UIFont systemFontOfSize:FONT_SIZE] constrainedToSize:constraint lineBreakMode:UILineBreakModeWordWrap];
    if (!label)
    label = (UILabel*)[cell viewWithTag:1];
    [label setText:text];
    [label setFrame:CGRectMake(CELLCONTENTMARGIN, CELLCONTENTMARGIN, CELLCONTENTWIDTH - (CELLCONTENTMARGIN * 2), MAX(size.height, 44.0f))];
    return cell;
    ////////////////////////////// code for ViewForHeaderInSection//////////////////////////////////////
    - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
    NSDictionary *state = [clinicalConditions objectAtIndex:section];
    NSString *text = [state objectForKey:@"Header"];
    UILabel *sectionHeader = [[[UILabel alloc] initWithFrame:CGRectMake(100, 100, 200, 40)] autorelease];
    sectionHeader.backgroundColor = [UIColor clearColor];
    sectionHeader.font = [UIFont boldSystemFontOfSize:16];
    sectionHeader.textAlignment = UITextAlignmentLeft;
    sectionHeader.textColor = [UIColor whiteColor];
    sectionHeader.text = text;
    return sectionHeader;
    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return 24;
    #pragma mark -
    #pragma mark Memory management
    - (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    // Relinquish ownership any cached data, images, etc that aren't in use.
    - (void)viewDidUnload {
    // Relinquish ownership of anything that can be recreated in viewDidLoad or on demand.
    // For example: self.myOutlet = nil;
    - (void)dealloc {
    [ItemChild release];
    [clinicalConditions release];
    [super dealloc];
    @end
    Message was edited by: james_coleman01

    Hi James -
    I think we need to get some clarity on what part of your schema is stored in 'clinicalConditions' and what part is stored in 'ItemChild'. To do that, we first need to be clear on the schema. I.e. we need to know the exact data structure stored in your plist file. The most recent schema I've seen is this one from [Plist to TableHeader text - a warning message that needs to be solved!|http://discussions.apple.com/message.jspa?messageID=12246134#12246134], Sept 9:
    Root.........................................................(Array)
    ........item0................................................(Dictionary)
    ................DiseaseName..................................(string)
    ................ItemChild....................................(Array)
    .....................Item0...................................(Dictionary)
    .............................title...........................(String)
    .............................Diseaseinfo.....................(String)
    .............................TitleForHeaderinsection.........(String)
    Is this the schema that applies now? If so, it appears that only some of your code fits.
    Firstly, the usage of 'clinicalConditions' appears to be consistent with the value of the ItemChild key. I.e. it's an array of dictionaries, and dictionary 0 stores the title of the entire table. Moreover the usage in viewDidLoad seems to be consistent with the usage in tableView:cellForRowAtIndexPath: and tableView:viewForHeaderInSection: (except that the latter uses "Header" as the key which is named TitleForHeaderinsection in the schema).
    Thus, if we assume 'clinicalConditions' is loaded from the value of ItemChild (presumably the rows of the ClinicalConditionsDetailView table), the array seems consistent with your Sept 9 schema.
    That leaves the 'ItemChild' array, which (suspiciously) is only used in tableView:heightForRowAtIndexPath:. I can't find any node in the schema that fits the usage of 'ItemChild'. Consider this code:
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    NSString *text = [ItemChild objectAtIndex:[indexPath section]];
    NSLog(@"text=%@", text); // <-- add logging here
    CGSize size = [text sizeWithFont:[UIFont systemFontOfSize:FONT_SIZE] constrainedToSize:constraint lineBreakMode:UILineBreakModeWordWrap];
    NSLog(@"size=%@", NSStringFromCGSize(size)); // <-- add logging here
    Apparently we believe 'ItemChild' points to an array of strings, and we send sizeWithFont::: to each of those strings to estimate the required cell height. But I can't find any array of strings in the schema (both of the arrays I see are arrays of dictionaries). So what's in the 'ItemChild' array? Where and how is it loaded? And why aren't we using the same strings to calculate height that we used to load the labels in tableView:cellForRowAtIndexPath:? If 'ItemChild' points to an array of short strings (obtained from someplace or another), it looks like tableView:heightForRowAtIndexPath: might always return 44 + 20. Is that what you're observing?
    I haven't built a test bed yet, and if you study the above carefully, maybe that won't be necessary. I'm guessing the 'ItemChild' array isn't loaded with the correct strings, and is unnecessary in any case. It looks like you need to use the NAME_KEY strings from the 'clinicalConditions' dictionaries to calculate the height in tableView:heightForRowAtIndexPath: (and btw, the height calculation in tableView:cellForRowAtIndexPath: looks correct but isn't useful; only the return from tableView:heightForRowAtIndexPath: will determine the height of each cell, and the height of each label will then track the cell height).
    Is that enough for you to fix the code? Give it a try, and see if you can put it together, ok?
    - Ray

  • Help with default user profile

    I have created a default user profile using a local account. Once I have the local account I copy the home folder to /System/Library/"User Template"/English.lproj
    I do
    chown -R root:wheel /System/Library/"User Template"/English.lproj
    From the terminal as root
    I log in with an Active Directory account and the profile is exactly as I created with one caveat, safari is trying to save to the dummy user accounts desktop instead of the logged in users account.

    It seems to me that when ".plist" files contain references to other files or folders, most require full paths and they won't accept anything to represent a generic "home". Either that, or items are represented by "alias" data, referring to a specific file, which would be completely independent of paths. That of course means that any sort of "template" account must avoid containing references to items within the "home" folder because the template will contain references to the original items, not their counterparts in the new user's home. Note that things like the "sidebar" in a regular account or the "Dock" in a "Simple Finder" do contain shortcuts to items within the "home" folder, but these aren't generated from ".plist" files in the template but rather are generated on the fly by "Finder" during login.
    In the case of the default download location for "Safari", I think it defaults to the user's "Desktop" in the absence of a ".plist" file. However, if the user changes the location, then a ".plist" file is created at that point. It would also appear that the default download location is set to the user's "Desktop" if the default Safari "home page" is changed, which also causes the same file to be created. The file appears to be: "~/Library/Preferences/com.apple.internetconfigpriv.plist"
    I haven't tested this to see if it would work, but it might be possible to modify your existing template to remove the reference to the "download folder" while retaining the desired Safari "home page" using something along these lines:<pre style="overflow:auto; padding: 5px; width: 500px ; font-size: 10px; border:1">sudo defaults delete /System/Library/User\ Template/English.lproj/Library/Preferences/com.apple.internetconfigpriv DownloadFolder</pre>

  • [iPhone SDK] Nib vs. JIT allocation: memory pressure and programmer time

    I'm going to ask a question that there's no single answer to. Instead, I'm more interested to know how different people approach the same problem.
    Lately I've been finding I'm of two minds when I have a UI element or view controller that isn't always used. On the one hand, the iPhone is a fairly memory-constrained environment, and the rules for developing for it are pretty explicit: don't use memory until you need it. That suggests "just in time" or "lazy" allocation: don't allocate it until you actually need it for the first time. After that, hold onto it in case you need it again, but be ready to free it if you receive a memory warning. My code is full of methods with names like "ensureViewerLoaded" which I call just before I need the object in question to allocate it if necessary.
    (For context: my applications are generally UIKit-based utility or data-browsing/editing apps with little graphical or computational complexity and very little memory pressure overall. So far, I've only released one app; at its greediest, it consumes about 1 MB. This isn't because I'm a brilliant programmer--although I do try to be parsimonious--it's just because the app doesn't need much memory to do what it's supposed to do.)
    But on the other hand, allocating those same objects in nib files (or, in other cases, loading them from plists or object archives) makes me more nimble. I've found that it reduces the weight of my code, paring it down to the logic I really need to be paying attention to. That lets me code faster--which means I can modify faster and release faster. And one thing I'm finding is that on the App Store, more releases means more sales. And more sales means I get to buy a MacBook Air with an SSD sooner, and thus save my back a few pounds of strain and my patience a few seconds of compilation. ;^)
    I guess what I'm asking is, how are you resolving these sorts of trade-offs? Where are you trading phone resources for programmer resources, and where are you deciding not to? And how is the type of app you're writing influencing that decision?

    My applications don't need much memory either, so I let everything happen in the nib file. I typically have about three views to worry about, and nothing significantly graphical in any of them.

  • NSCFString crash app when secondary used

    Hello! NSCFString from plist crash my program when i using it in the second time. I have cocos2d project (attach) with one scene and one object. And one .plist file
    HelloWorldLayer.h & .m (instantiate from CCLayer)
    NodeObject.h & .m (instantiate from CCNode)
    Test.plist
    In NodeObject i have one local string and two method
    @interface NodeObject : CCNode
        NSString *stringForPrint;
    -(void)createObjWithString:[NSString *)string;
    -(void)printString;
    In this both method we print string obtained in parameter string
    -(void)createObjWithString:[NSString *)string
        stringForPrint = string;
        NSLog(@"NodeObject.createObjWithString stringForPrint >> %@", stringForPrint);
    -(void)printString
        NSLog(@"NodeObject.printString stringForPrint >> %@", stringForPrint);
    Plis content is one array with one dictionary whit item type string.
    Root
    -TestArray <Array>
    --item 0 <Dictionary>
    ---type <String> == "This is string from plist"
    For test, into the scene i'm create NodeObject and get dada from plist. And print this string. It's work correctly.
    if ([testDictionary objectForKey:@"TestArray"]) {
                for (NSDictionary *tempItemData in [testDictionary objectForKey:@"TestArray"]) {                //It's cool work. True string from plist.
                    NSLog(@"type form plist in for loop > %@", [tempItemData objectForKey:@"type"]);            }
    I create my NodeObject into the loop. And it's work again.
    if ([testDictionary objectForKey:@"TestArray"]) {
                for (NSDictionary *tempItemData in [testDictionary objectForKey:@"TestArray"]) {
                    NodeObject *testObj = [NodeObject node];
                    //and send it string from plist
                    [testObj createObjWithString:[tempItemData objectForKey:@"type"]];
    BUT! if i have tried use this string in the printString method form NodeObject, app will crash without log. [testObj printString]; //crash app
    I have check object from plist using:
        NSLog(@"Description %@ and class %@",[[tempItemData objectForKey:@"type"]description],    [[tempItemData objectForKey:@"type"]class]);
    I repeat. Object creation with manual string work. If using string from plist it's crash. I broke my head. And only in the second method. In the createObjWithStrig it work.
        //Work
        NodeObject *testObj = [NodeObject node];
        [testObj createObjWithString:@"manual string object"];
        [testObj printString]; // Print correct string
        //Crash
        NodeObject *testObj = [NodeObject node];
        [testObj createObjWithString:[tempItemData objectForKey:@"type"]];
        [testObj printString]; //Crash here
    I'm attach project file. Can test this

    Thank you wery match!
    Only this forum help me. Stackowerflow not halped, cocos2d-iphone not helped. Thaks @etresoft
    stringForPrint = [string retain];
    solved problem.

Maybe you are looking for