Formatting Core Data Conflict List
Formatting Core Data Conflict List
- Subject: Formatting Core Data Conflict List
- From: Steve Steinitz <email@hidden>
- Date: Thu, 29 Jan 2009 16:10:39 +1100
Hello,
I'm trying to track down the cause of hundreds of optimistic
locking errors in a multi-user core data application. A clue
might be found in the core data conflict list. However, its a
format that I don't recognize and find difficult to read. Does
anyone know a way to display it nicely, i.e. indented so as to
show the nesting or in some kind of outline view? I tried
property list editor and xCode to no avail.
I've pasted a sample below (please don't quote the whole thing
in any replies)
Thanks,
Steve
Conflict List:
(
{
cachedRow = {
archivedBalance = 1065;
archivedTotal = <null>;
bikesDiscount = <null>;
closed = 0;
customer = <null>;
date = 2009-01-27 17:32:00 +1100;
deleted = <null>;
discount = <null>;
generalSale = <null>;
invoiceNumber = 32;
notes = <null>;
otherDiscount = <null>;
pending = 0;
salesPerson = 0x1331a00 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Employee/p8>;
};
newVersion = 13;
object = <Sale: 0x1399bc0> (entity: Sale; id: 0x12deff0
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p32> ;
data: {
archivedBalance = 466;
archivedTotal = nil;
bikes = (
0x137ab00 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Bike/p8>
);
bikesDiscount = nil;
closed = 0;
customer = nil;
date = 2009-01-27 17:32:00 +1100;
deleted = nil;
discount = nil;
generalSale = nil;
invoiceNumber = 32;
lineItems = (
0x1379fe0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p44>
);
notes = nil;
otherDiscount = nil;
payments = (
);
pending = 1;
riskPoints = (
);
salesPerson = 0x13454f0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Employee/p8>;
});
oldVersion = 11;
snapshot = {
archivedBalance = 466;
archivedTotal = <null>;
bikes = {(
<Bike: 0x10abf40> (entity: Bike; id: 0x137ab00
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Bike/p8> ;
data: {
assembled = 0;
assembler = nil;
campaignModel = nil;
cost = 0;
mold = 0x12e0640 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/BikeMold/p29>;
notes = nil;
received = 1;
sale = 0x12deff0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p32>;
salePrice = 450;
serialNumber = TYUT;
})
)};
bikesDiscount = <null>;
closed = 0;
customer = <null>;
date = 2009-01-27 17:32:00 +1100;
deleted = <null>;
discount = <null>;
generalSale = <null>;
invoiceNumber = 32;
lineItems = {(
<LineItem: 0x1369840> (entity: LineItem; id:
0x1379fe0
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p44>
; data: {
applyDiscount = 0;
campaignModel = nil;
notes = Bottle;
product = 0x135c760 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Product/p23>;
quantity = 1;
sale = 0x12deff0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p32>;
salePrice = 16;
})
)};
notes = <null>;
otherDiscount = <null>;
payments = {(
)};
pending = 0;
riskPoints = {(
)};
salesPerson = na Mary Wonderful;
};
},
{
cachedRow = {
archivedBalance = 0;
archivedTotal = <null>;
bikesDiscount = <null>;
closed = 0;
customer = <null>;
date = 2009-01-27 17:21:44 +1100;
deleted = <null>;
discount = <null>;
generalSale = <null>;
invoiceNumber = 30;
notes = <null>;
otherDiscount = <null>;
pending = 0;
salesPerson = 0x13271d0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Employee/p7>;
};
newVersion = 21;
object = <Sale: 0x13a1d80> (entity: Sale; id: 0x12ea530
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p31> ;
data: {
archivedBalance = 0;
archivedTotal = nil;
bikes = (
);
bikesDiscount = nil;
closed = 0;
customer = nil;
date = 2009-01-27 17:21:44 +1100;
deleted = nil;
discount = nil;
generalSale = nil;
invoiceNumber = 30;
lineItems = (
0x1379fb0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p39>,
0x1379fa0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p38>,
0x1379fd0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p41>,
0x1379fc0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p40>
);
notes = nil;
otherDiscount = nil;
payments = (
);
pending = 0;
riskPoints = (
0x12ca8d0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/RiskPoint/p66>,
0x12c90d0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/RiskPoint/p67>
);
salesPerson = 0x12e34e0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Employee/p7>;
});
oldVersion = 20;
snapshot = {
archivedBalance = 0;
archivedTotal = <null>;
bikes = {(
)};
bikesDiscount = <null>;
closed = 0;
customer = <null>;
date = 2009-01-27 17:21:44 +1100;
deleted = <null>;
discount = <null>;
generalSale = <null>;
invoiceNumber = 30;
lineItems = {(
<LineItem: 0x136a970> (entity: LineItem; id:
0x1379fb0
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p39>
; data: {
applyDiscount = 0;
campaignModel = nil;
notes = "M Pink";
product = 0x12e9df0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/BikeMold/p33>;
quantity = -1;
sale = 0x12ea530 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p31>;
salePrice = 0;
}),
<LineItem: 0x136a8c0> (entity: LineItem; id:
0x1379fa0
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p38>
; data: {
applyDiscount = 0;
campaignModel = nil;
notes = "M Pink";
product = 0x12e9df0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/BikeMold/p33>;
quantity = 1;
sale = 0x12ea530 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p31>;
salePrice = 0;
}),
<LineItem: 0x13697b0> (entity: LineItem; id:
0x1379fd0
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p41>
; data: {
applyDiscount = 0;
campaignModel = nil;
notes = "XL Pink";
product = 0x12e0640 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/BikeMold/p29>;
quantity = -1;
sale = 0x12ea530 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p31>;
salePrice = 450;
}),
<LineItem: 0x136aa40> (entity: LineItem; id:
0x1379fc0
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/LineItem/p40>
; data: {
applyDiscount = 0;
campaignModel = nil;
notes = "XL Pink";
product = 0x12e0640 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/BikeMold/p29>;
quantity = 1;
sale = 0x12ea530 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p31>;
salePrice = 450;
})
)};
notes = <null>;
otherDiscount = <null>;
payments = {(
)};
pending = 0;
riskPoints = {(
<RiskPoint: 0x13d60d0> (entity: RiskPoint; id:
0x12ca8d0
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/RiskPoint/p66>
; data: <fault>),
<RiskPoint: 0x13d5d00> (entity: RiskPoint; id:
0x12c90d0
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/RiskPoint/p67>
; data: <fault>)
)};
salesPerson = na Suzie Fragrant;
};
},
{
cachedRow = {
archivedBalance = 0;
archivedTotal = <null>;
bikesDiscount = <null>;
closed = 0;
customer = <null>;
date = 2009-01-27 17:21:27 +1100;
deleted = <null>;
discount = <null>;
generalSale = <null>;
invoiceNumber = 29;
notes = <null>;
otherDiscount = <null>;
pending = 0;
salesPerson = 0x1320d60 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Employee/p8>;
};
newVersion = 19;
object = <Sale: 0x12e7d70> (entity: Sale; id: 0x1377610
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p28> ;
data: {
archivedBalance = 0;
archivedTotal = nil;
bikes = (
);
bikesDiscount = nil;
closed = 0;
customer = nil;
date = 2009-01-27 17:21:27 +1100;
deleted = nil;
discount = nil;
generalSale = nil;
invoiceNumber = 29;
lineItems = (
);
notes = nil;
otherDiscount = nil;
payments = (
);
pending = 0;
riskPoints = (
);
salesPerson = 0x13454f0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Employee/p8>;
});
oldVersion = 18;
snapshot = {
archivedBalance = 0;
archivedTotal = <null>;
bikes = {(
)};
bikesDiscount = <null>;
closed = 0;
customer = <null>;
date = 2009-01-27 17:21:27 +1100;
deleted = <null>;
discount = <null>;
generalSale = <null>;
invoiceNumber = 29;
lineItems = {(
)};
notes = <null>;
otherDiscount = <null>;
payments = {(
)};
pending = 0;
riskPoints = {(
)};
salesPerson = na Mary Wonderful;
};
},
{
cachedRow = {
archivedBalance = 0;
archivedTotal = <null>;
bikesDiscount = <null>;
closed = 0;
customer = <null>;
date = 2009-01-27 17:43:43 +1100;
deleted = <null>;
discount = <null>;
generalSale = <null>;
invoiceNumber = 33;
notes = <null>;
otherDiscount = <null>;
pending = 0;
salesPerson = 0x131fbf0 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Employee/p6>;
};
newVersion = 9;
object = <Sale: 0x1341d70> (entity: Sale; id: 0x1377640
<x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Sale/p33> ;
data: {
archivedBalance = 0;
archivedTotal = nil;
bikes = (
);
bikesDiscount = nil;
closed = 0;
customer = nil;
date = 2009-01-27 17:43:43 +1100;
deleted = nil;
discount = nil;
generalSale = nil;
invoiceNumber = 33;
lineItems = (
);
notes = nil;
otherDiscount = nil;
payments = (
);
pending = 0;
riskPoints = (
);
salesPerson = 0x1385610 <x-coredata://4B1C35CE-5D2D-476F-AC9F-908B9907FBC6/Employee/p6>;
});
oldVersion = 8;
snapshot = {
archivedBalance = 0;
archivedTotal = <null>;
bikes = {(
)};
bikesDiscount = <null>;
closed = 0;
customer = <null>;
date = 2009-01-27 17:43:43 +1100;
deleted = <null>;
discount = <null>;
generalSale = <null>;
invoiceNumber = 33;
lineItems = {(
)};
notes = <null>;
otherDiscount = <null>;
payments = {(
)};
pending = 0;
riskPoints = {(
)};
salesPerson = na Linda Lucious;
};
}
)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden